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
This commit is contained in:
Shu Yingya 2017-08-01 19:24:17 +08:00
parent 14ff925fd6
commit 309e1662fa
1 changed files with 1 additions and 1 deletions

View File

@ -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])