Skip to content

Commit 1973925

Browse files
committed
Added the SUSPENDED state to the zpool status parser
1 parent d2507f7 commit 1973925

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

ZenPacks/daviswr/ZFS/parsers/zpool/status.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ def processResults(self, cmd, result):
5151
'OFFLINE': 3,
5252
'UNAVAIL': 4,
5353
'REMOVED': 5,
54+
'SUSPENDED': 6,
5455
}
5556

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

6768
if match:
6869
health = match.groups()[0]
69-
values['health'] = health_map.get(health)
70+
values['health'] = health_map.get(health, 100)
7071
break
7172

7273
for point in cmd.points:

0 commit comments

Comments
 (0)