Skip to content

Commit

Permalink
Added AllowableValues check in the workaround
Browse files Browse the repository at this point in the history
Signed-off-by: Mike Raineri <[email protected]>
  • Loading branch information
mraineri committed Aug 30, 2023
1 parent b37e2b6 commit 5f628e0
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions redfish_utilities/systems.py
Original file line number Diff line number Diff line change
Expand Up @@ -149,9 +149,8 @@ def get_system_boot( context, system_id = None ):
# Boot override property found; copy it over
boot_ov_found = True
boot_obj[prop] = system_settings.dict["Boot"][prop]
allow_prop = prop + "@Redfish.AllowableValues"
if allow_prop in system_settings.dict["Boot"]:
boot_obj[allow_prop] = system_settings.dict["Boot"][allow_prop]
if prop + "@Redfish.AllowableValues" in system_settings.dict["Boot"]:
boot_obj[prop + "@Redfish.AllowableValues"] = system_settings.dict["Boot"][prop + "@Redfish.AllowableValues"]
if boot_ov_found:
warnings.warn( "System '{}' contains one or more boot override properties in the settings resource. Contact your vendor.".format( system_id ) )
break
Expand Down

0 comments on commit 5f628e0

Please sign in to comment.