Specify wildcard etag during set_bootdevice

The request is sufficiently specific that we
do not care about the larger state of the
resource.  Explicitly declare this by
indicating a wildcard etag.

Change-Id: Ie0529ffea63516bf025f4ce146e39df40bcc768d
This commit is contained in:
Jarrod Johnson 2023-03-06 15:55:18 -05:00
parent 14652e8d84
commit bb46b94eab
1 changed files with 2 additions and 2 deletions

View File

@ -185,9 +185,9 @@ class OEMHandler(object):
return {'bootdev': reqbootdev}
except Exception:
del payload['BootSourceOverrideMode']
thetag = fishclient.sysinfo.get('@odata.etag', None)
#thetag = fishclient.sysinfo.get('@odata.etag', None)
fishclient._do_web_request(fishclient.sysurl, payload, method='PATCH',
etag=thetag)
etag='*') # thetag)
return {'bootdev': reqbootdev}
def _get_cache(self, url):