Skip to content

Commit

Permalink
Fixed trying to pull zpool cache device from non-matching regex
Browse files Browse the repository at this point in the history
  • Loading branch information
daviswr committed Sep 13, 2016
1 parent bab31e1 commit 01c50d7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ZenPacks/daviswr/ZFS/modeler/plugins/daviswr/cmd/ZPool.py
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ def process(self, device, results, log):
# rather than a child vdev in a logs/cache root
elif status_root_match:
if 'cache' == last_type:
dev = status_child_match.group('dev')
dev = status_root_match.group('dev')
key = 'cache_{}'.format(dev)
if key not in last_tree:
last_tree[key] = dict()
Expand Down

0 comments on commit 01c50d7

Please sign in to comment.