mirror of
https://opendev.org/x/pyghmi
synced 2025-01-31 05:17:39 +00:00
Accept . for _ in redfish names
Prior to ODATA limitations, . was a common delimiter. If a setting is a good match if substituting . instead of _, go ahead and consider it a match. Change-Id: I5da06464f34a1d0d7f4869312ef1c48fe2f858cc
This commit is contained in:
parent
ce333b3bfc
commit
f0b6160c99
@ -1110,6 +1110,10 @@ class Command(object):
|
||||
if fnmatch(attr.lower(), change.lower()):
|
||||
found = True
|
||||
changeset[attr] = changeset[change]
|
||||
if fnmatch(attr.lower(),
|
||||
change.replace('.', '_').lower()):
|
||||
found = True
|
||||
changeset[attr] = changeset[change]
|
||||
if found:
|
||||
del changeset[change]
|
||||
for change in changeset:
|
||||
|
Loading…
x
Reference in New Issue
Block a user