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 3a70a63 commit b37e2b6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions redfish_utilities/systems.py
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,9 @@ 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 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 b37e2b6

Please sign in to comment.