diff options
author | Leonel Gonzalez <lgonzalez@us.ibm.com> | 2017-05-24 09:51:55 -0500 |
---|---|---|
committer | Leonel Gonzalez <lgonzalez@us.ibm.com> | 2017-05-24 09:51:55 -0500 |
commit | 409f671b6ee0023607236c00fbe117939c83d05c (patch) | |
tree | 20a9b866a289f3f32b28c81b158980bbcf502fa1 /module | |
parent | db1a21e373bcabe48ced67a5334a1019852b971d (diff) | |
download | phosphor-rest-server-409f671b6ee0023607236c00fbe117939c83d05c.tar.gz phosphor-rest-server-409f671b6ee0023607236c00fbe117939c83d05c.zip |
Finds correct property to set fan speed
Fixes openbmc/openbmc#1563
Change-Id: I73ce61e0416318917902ffdf4969b600236772d9
Signed-off-by: Leonel Gonzalez <lgonzalez@us.ibm.com>
Diffstat (limited to 'module')
-rw-r--r-- | module/obmc/wsgi/apps/rest_dbus.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/module/obmc/wsgi/apps/rest_dbus.py b/module/obmc/wsgi/apps/rest_dbus.py index 55d5b44..c51e4f9 100644 --- a/module/obmc/wsgi/apps/rest_dbus.py +++ b/module/obmc/wsgi/apps/rest_dbus.py @@ -333,10 +333,11 @@ class PropertyHandler(RouteHandler): properties = self.try_properties_interface(iface.GetAll, i) if not properties: continue - prop = obmc.utils.misc.find_case_insensitive( + match = obmc.utils.misc.find_case_insensitive( prop, properties.keys()) - if prop is None: + if match is None: continue + prop = match return prop, i |