summaryrefslogtreecommitdiffstats
path: root/module/obmc
diff options
context:
space:
mode:
authorBrad Bishop <bradleyb@fuzziesquirrel.com>2017-02-21 12:01:52 -0500
committerBrad Bishop <bradleyb@fuzziesquirrel.com>2017-02-26 12:51:41 -0500
commit69cb6d18c5ff35a3a598de00a348f4e270c6b5f7 (patch)
tree945127a6cb8d45a06aa8da94553a357ee1a1d5a7 /module/obmc
parentd0c404a67ac49fc301a60a5c26d087e8553ad50c (diff)
downloadphosphor-rest-server-69cb6d18c5ff35a3a598de00a348f4e270c6b5f7.tar.gz
phosphor-rest-server-69cb6d18c5ff35a3a598de00a348f4e270c6b5f7.zip
Fix attr PUT after empty interface
Fix an issue that occurs when doing a PUT using the attr endpoint when an object has an interface without properties. Change-Id: Ib3b2bb81dd287365851e6a67fec0c33479fdc543 Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
Diffstat (limited to 'module/obmc')
-rw-r--r--module/obmc/wsgi/apps/rest_dbus.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/module/obmc/wsgi/apps/rest_dbus.py b/module/obmc/wsgi/apps/rest_dbus.py
index 6582190..2c284c6 100644
--- a/module/obmc/wsgi/apps/rest_dbus.py
+++ b/module/obmc/wsgi/apps/rest_dbus.py
@@ -324,7 +324,7 @@ class PropertyHandler(RouteHandler):
def get_host_interface_on_bus(self, path, prop, iface, bus, interfaces):
for i in interfaces:
properties = self.try_properties_interface(iface.GetAll, i)
- if properties is None:
+ if not properties:
continue
prop = obmc.utils.misc.find_case_insensitive(
prop, properties.keys())
OpenPOWER on IntegriCloud