summaryrefslogtreecommitdiffstats
path: root/pystatemgr
diff options
context:
space:
mode:
authorAdriana Kobylak <anoo@us.ibm.com>2018-01-26 15:07:23 -0600
committerBrad Bishop <bradleyb@fuzziesquirrel.com>2018-02-12 23:17:41 +0000
commit24341f9d1335a7cb175cc67557f2a8bdbb89a2e8 (patch)
tree1f275b0eabac86f9f0469e6d7af4583e6f3f685c /pystatemgr
parenta30ab9db33bb8d1c208b2b86b8e824c5c70dae54 (diff)
downloadtalos-skeleton-24341f9d1335a7cb175cc67557f2a8bdbb89a2e8.tar.gz
talos-skeleton-24341f9d1335a7cb175cc67557f2a8bdbb89a2e8.zip
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>
Diffstat (limited to 'pystatemgr')
-rw-r--r--pystatemgr/discover_system_state.py2
1 files changed, 2 insertions, 0 deletions
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 @@ def getProperty(bus, objs, key, prop):
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')
OpenPOWER on IntegriCloud