Skip to content

Commit

Permalink
Added the SUSPENDED state to the zpool status parser
Browse files Browse the repository at this point in the history
  • Loading branch information
daviswr committed Nov 6, 2016
1 parent d2507f7 commit 1973925
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ZenPacks/daviswr/ZFS/parsers/zpool/status.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ def processResults(self, cmd, result):
'OFFLINE': 3,
'UNAVAIL': 4,
'REMOVED': 5,
'SUSPENDED': 6,
}

values = dict()
Expand All @@ -66,7 +67,7 @@ def processResults(self, cmd, result):

if match:
health = match.groups()[0]
values['health'] = health_map.get(health)
values['health'] = health_map.get(health, 100)
break

for point in cmd.points:
Expand Down

0 comments on commit 1973925

Please sign in to comment.