pep8 fixes
Also ignore the configs/ directory since it only contains
system configuration files named <system>.py.
Change-Id: I0416239c4030ce5bc39473e65e560016cd4ffc75
Signed-off-by: Adriana Kobylak <anoo@us.ibm.com>
diff --git a/pystatemgr/discover_system_state.py b/pystatemgr/discover_system_state.py
index cc2ae10..9324eba 100644
--- a/pystatemgr/discover_system_state.py
+++ b/pystatemgr/discover_system_state.py
@@ -69,12 +69,14 @@
intf = dbus.Interface(obj, dbus.PROPERTIES_IFACE)
return intf.Get(objs[key]['interface_name'], prop)
+
def setProperty(bus, objs, key, prop, prop_value):
obj = bus.get_object(
objs[key]['bus_name'], objs[key]['object_name'])
intf = dbus.Interface(obj, dbus.PROPERTIES_IFACE)
return intf.Set(objs[key]['interface_name'], prop, prop_value)
+
bus = dbus.SystemBus()
pgood = getProperty(bus, dbus_objects, 'power', 'pgood')