Avoid using deprecated opt in Web-UI
Use new opt instead of deprecated opt to avoid KeyError. Change-Id: I9bff33eac9c756afb571f81824a8a3242477f321 Closes-Bug: #1777705
This commit is contained in:
parent
357117beff
commit
40a07a0e00
@ -353,7 +353,7 @@ class AdvancedConfigurationAction(workflows.Action):
|
||||
widget=forms.URLInput(),
|
||||
required=False)
|
||||
|
||||
os_auth_ver = forms.ChoiceField(
|
||||
os_identity_api_version = forms.ChoiceField(
|
||||
label=_("OpenStack Authentication Version"),
|
||||
help_text=_("Swift auth version, could be 1, 2 or 3"),
|
||||
required=False)
|
||||
@ -494,7 +494,7 @@ class AdvancedConfigurationAction(workflows.Action):
|
||||
widget=forms.CheckboxInput(),
|
||||
required=False)
|
||||
|
||||
def populate_os_auth_ver_choices(self, request, context):
|
||||
def populate_os_identity_api_version_choices(self, request, context):
|
||||
return [
|
||||
('2', _("v2")),
|
||||
('1', _("v1")),
|
||||
@ -512,7 +512,7 @@ class AdvancedConfiguration(workflows.Step):
|
||||
contributes = ('exclude',
|
||||
'log_file',
|
||||
'proxy',
|
||||
'os_auth_ver',
|
||||
'os_identity_api_version',
|
||||
'upload_limit',
|
||||
'download_limit',
|
||||
'compression',
|
||||
|
Loading…
x
Reference in New Issue
Block a user