pytools: obmcutil: Rename bus to dbus_bus
Change-Id: Ia78317bd76f70bb3f701bfad6e262438ea061d6c
Signed-off-by: Andrew Jeffery <andrew@aj.id.au>
diff --git a/pytools/obmcutil b/pytools/obmcutil
index 2f5518e..775dd91 100644
--- a/pytools/obmcutil
+++ b/pytools/obmcutil
@@ -69,7 +69,7 @@
# Commands that need to run multiple objects above
multicmd_objects = { 'state' : ['bmcstate', 'chassisstate', 'hoststate'] }
- bus = dbus.SystemBus()
+ dbus_bus = dbus.SystemBus()
if (len(sys.argv) == 1 or sys.argv[1] == "-h" or
(not(dbus_objects.has_key(sys.argv[1])) and
@@ -105,7 +105,7 @@
bus_name = objinfo['bus_name']
obj = objinfo['object_name']
iface = objinfo['interface_name']
- dbus_obj = bus.get_object(bus_name, obj)
+ dbus_obj = dbus_bus.get_object(bus_name, obj)
if (property_name != ""):
dbus_iface = dbus.Interface(dbus_obj, "org.freedesktop.DBus.Properties")