summaryrefslogtreecommitdiffstats
path: root/module/obmc/wsgi/apps
diff options
context:
space:
mode:
authorLeonel Gonzalez <lgonzalez@us.ibm.com>2017-05-24 09:51:55 -0500
committerLeonel Gonzalez <lgonzalez@us.ibm.com>2017-05-24 09:51:55 -0500
commit409f671b6ee0023607236c00fbe117939c83d05c (patch)
tree20a9b866a289f3f32b28c81b158980bbcf502fa1 /module/obmc/wsgi/apps
parentdb1a21e373bcabe48ced67a5334a1019852b971d (diff)
downloadphosphor-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/obmc/wsgi/apps')
-rw-r--r--module/obmc/wsgi/apps/rest_dbus.py5
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
OpenPOWER on IntegriCloud