From f0b6160c9913df61c7c9948e252adea38a4d0bb8 Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Tue, 23 Mar 2021 11:50:09 -0400 Subject: [PATCH] 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 --- pyghmi/redfish/command.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pyghmi/redfish/command.py b/pyghmi/redfish/command.py index 4ad54aa7..23e49b1c 100644 --- a/pyghmi/redfish/command.py +++ b/pyghmi/redfish/command.py @@ -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: