summaryrefslogtreecommitdiffstats
path: root/pyinventorymgr
diff options
context:
space:
mode:
authorAdriana Kobylak <anoo@us.ibm.com>2016-08-15 12:12:56 -0500
committerAdriana Kobylak <anoo@us.ibm.com>2016-08-15 12:12:56 -0500
commit1e8a74ae0ea3177011a37104df93ba98ec6a357b (patch)
tree8cd2fd207977f73d1bc4b6bec588574246af92cb /pyinventorymgr
parent07bd9c05a65704d343666d57e0f7161286605d8f (diff)
downloadtalos-skeleton-1e8a74ae0ea3177011a37104df93ba98ec6a357b.tar.gz
talos-skeleton-1e8a74ae0ea3177011a37104df93ba98ec6a357b.zip
Cache inventory properties fault and present
The inventory properties 'fault' and 'present' were the only inventory propertiess that were not being cached, so during a cache restore, these values would be set to default instead of being restored to their last value. Resolves openbmc/openbmc#487 Change-Id: I0bab765e45193635872d465b89fa2e19f3111fa0 Signed-off-by: Adriana Kobylak <anoo@us.ibm.com>
Diffstat (limited to 'pyinventorymgr')
-rw-r--r--pyinventorymgr/inventory_items.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/pyinventorymgr/inventory_items.py b/pyinventorymgr/inventory_items.py
index a046615..ddaec98 100644
--- a/pyinventorymgr/inventory_items.py
+++ b/pyinventorymgr/inventory_items.py
@@ -47,17 +47,19 @@ class InventoryItem(DbusProperties):
in_signature='a{sv}', out_signature='')
def update(self,data):
self.SetMultiple(INTF_NAME,data)
- PropertyCacher.save(self.name,INTF_NAME,self.properties)
+ PropertyCacher.save(self.name, INTF_NAME, self.properties)
@dbus.service.method(INTF_NAME,
in_signature='s', out_signature='')
def setPresent(self,present):
self.Set(INTF_NAME,'present',present)
+ PropertyCacher.save(self.name, INTF_NAME, self.properties)
@dbus.service.method(INTF_NAME,
in_signature='s', out_signature='')
def setFault(self,fault):
self.Set(INTF_NAME,'fault',fault)
+ PropertyCacher.save(self.name, INTF_NAME, self.properties)
def getVersion():
OpenPOWER on IntegriCloud