mirror of
https://opendev.org/x/pyghmi
synced 2025-01-15 04:07:48 +00:00
Convert integer when advertised
Rather than passing a value through, cast to int if the registry is available and instructs us to do so. Change-Id: I1b057f15278ba0cd0e98d23b073e3333fb896589
This commit is contained in:
parent
684ffe30da
commit
ee4219766a
@ -1001,6 +1001,11 @@ class Command(object):
|
||||
','.join(currsettings[change]['possible'])))
|
||||
if changeset[change] in reginfo[2].get(change, {}):
|
||||
changeset[change] = reginfo[2][change][changeset[change]]
|
||||
for regentry in reginfo[3].get('Attributes', []):
|
||||
if change in (regentry.get('AttributeName', ''),
|
||||
regentry.get('DisplayName', '')):
|
||||
if regentry.get('Type', None) == 'Integer':
|
||||
changeset[change] = int(changeset[change])
|
||||
redfishsettings = {'Attributes': changeset}
|
||||
self._do_web_request(self._setbiosurl, redfishsettings, 'PATCH')
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user