Skip to content

Commit

Permalink
apcups: fix for get_iattr_value (missing item.conf)
Browse files Browse the repository at this point in the history
  • Loading branch information
psilo909 committed Sep 14, 2017
1 parent c6fd256 commit 38f7198
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apcups/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ def stop(self):

def parse_item(self, item):
if self.has_iattr(item.conf, ITEM_TAG[0]):
apcups_key = (self.get_iattr_value(ITEM_TAG[0])).lower()
apcups_key = (self.get_iattr_value(item.conf, ITEM_TAG[0])).lower()
self._items[apcups_key]=item
logger.debug("item {0} added with apcupd_key {1}".format(item,apcups_key))
return self.update_item
Expand Down

0 comments on commit 38f7198

Please sign in to comment.