mirror of
https://opendev.org/x/pyghmi
synced 2025-01-31 05:17:39 +00:00
Merge "Recognize another etag message"
This commit is contained in:
commit
f797e95e84
@ -1091,7 +1091,8 @@ class Command(object):
|
||||
self._set_system_configuration(changeset)
|
||||
return
|
||||
except exc.RedfishError as re:
|
||||
if 'etag' not in re.msgid.lower():
|
||||
if ('etag' not in re.msgid.lower()
|
||||
and 'PreconditionFailed' not in re.msgid):
|
||||
raise
|
||||
|
||||
def _set_system_configuration(self, changeset):
|
||||
@ -1139,7 +1140,8 @@ class Command(object):
|
||||
if not normval.endswith('*'):
|
||||
normval += '*'
|
||||
for cand in currsettings[change]['possible']:
|
||||
if fnmatch(cand.lower(), normval):
|
||||
if fnmatch(cand.lower().replace(' ', ''),
|
||||
normval.replace(' ', '')):
|
||||
changeset[change] = cand
|
||||
break
|
||||
else:
|
||||
|
Loading…
x
Reference in New Issue
Block a user