mirror of
https://opendev.org/x/pyghmi
synced 2026-05-16 19:34:21 +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:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user