pytools: obmcutil: Rename property_value to val
Change-Id: I768fbffde2025bb0f92b3aa82fe00f558a68fc2b
Signed-off-by: Andrew Jeffery <andrew@aj.id.au>
diff --git a/pytools/obmcutil b/pytools/obmcutil
index 40bd655..e62f2fc 100644
--- a/pytools/obmcutil
+++ b/pytools/obmcutil
@@ -110,14 +110,14 @@
if (prop != ""):
dbus_iface = dbus.Interface(dbus_obj, "org.freedesktop.DBus.Properties")
if (objinfo.has_key('value')):
- property_value = objinfo['value']
+ val = objinfo['value']
else:
if(len(sys.argv) > 0):
- property_value = eval(sys.argv.pop(0))
+ val = eval(sys.argv.pop(0))
else:
- property_value = None
- if(property_value is not None):
- dbus_iface.Set(iface, prop, property_value)
+ val = None
+ if(val is not None):
+ dbus_iface.Set(iface, prop, val)
else:
dbus_prop = dbus_iface.Get(iface, prop)
print '{:<20}'.format(prop+": ") + str(dbus_prop)