From 409f671b6ee0023607236c00fbe117939c83d05c Mon Sep 17 00:00:00 2001 From: Leonel Gonzalez Date: Wed, 24 May 2017 09:51:55 -0500 Subject: Finds correct property to set fan speed Fixes openbmc/openbmc#1563 Change-Id: I73ce61e0416318917902ffdf4969b600236772d9 Signed-off-by: Leonel Gonzalez --- module/obmc/wsgi/apps/rest_dbus.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'module/obmc/wsgi') 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 -- cgit v1.2.1