Fix outdated capability reference
Host capability max_cpu_config was renamed to is_max_cpu_configurable in https://review.opendev.org/c/starlingx/config/+/843661. This naming mismatch is not breaking horizon GUI although can lead to a bad behavior by checking an unexisting key. Story: 2009886 Task: 45620 Test plan: PASS: Verify that Edit Host modal remains working as expected. Signed-off-by: Iago Estrela <IagoFilipe.EstrelaBarros@windriver.com> Change-Id: Ic9b2381e36444c57fe9300232d62c5f28e98112d
This commit is contained in:
parent
538bc72435
commit
e4229adde6
@ -257,7 +257,7 @@ class UpdateHostInfoAction(workflows.Action):
|
||||
self.fields['subfunctions'].required = False
|
||||
|
||||
if (host._capabilities.get(
|
||||
'max_cpu_config') in [None, 'not-configurable'] or
|
||||
'is_max_cpu_configurable') in [None, 'not-configurable'] or
|
||||
sysinv_const.CONTROLLER in host.subfunctions):
|
||||
self.fields['cpu_freq_config'].widget.attrs['readonly'] = \
|
||||
'readonly'
|
||||
|
Loading…
Reference in New Issue
Block a user