From 309e1662fa15d34fd2d88a283f64e6ca0491b746 Mon Sep 17 00:00:00 2001 From: Shu Yingya Date: Tue, 1 Aug 2017 19:24:17 +0800 Subject: [PATCH] Fix can't open the NGT creating form Horizon team has overloaded a method "build_attrs" in [1] to use "var-keyword parameter". Sahara dashboard will face an error when click button to create node group template. Error message is: "TypeError: build_attrs() got an unexpected keyword argument 'name'" [1]: https://review.openstack.org/#/c/484277/ Change-Id: I4b4fc2d12465fcda5e0feddcf4aab6b11bd9be10 --- .../clusters/nodegroup_templates/workflows/create.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sahara_dashboard/content/data_processing/clusters/nodegroup_templates/workflows/create.py b/sahara_dashboard/content/data_processing/clusters/nodegroup_templates/workflows/create.py index 6ec8365c..ab596030 100644 --- a/sahara_dashboard/content/data_processing/clusters/nodegroup_templates/workflows/create.py +++ b/sahara_dashboard/content/data_processing/clusters/nodegroup_templates/workflows/create.py @@ -301,7 +301,7 @@ class CheckboxSelectMultiple(forms.CheckboxSelectMultiple): if value is None: value = [] has_id = attrs and 'id' in attrs - final_attrs = self.build_attrs(attrs, name=name) + final_attrs = self.build_attrs(attrs, {'name': name}) output = [] initial_service = uuidutils.generate_uuid() str_values = set([encoding.force_text(v) for v in value])