Skip to content

Commit

Permalink
FIX: Populate pool title if not found in zdb
Browse files Browse the repository at this point in the history
  • Loading branch information
daviswr committed Nov 17, 2021
1 parent 99b0ad1 commit 8a17ca6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ZenPacks/daviswr/ZFS/modeler/plugins/daviswr/cmd/ZPool.py
Original file line number Diff line number Diff line change
Expand Up @@ -277,6 +277,9 @@ def process(self, device, results, log):
elif (not key == 'vdev_tree'
and not key == 'name'):
comp[key] = pools[pool][key]
# If the pool name wasn't gotten from zdb
if 'title' not in comp:
comp['title'] = pool
# Can't use the GUID since it's not available in iostat
comp['id'] = self.prepId('pool_{0}'.format(pool))
log.debug('Found ZPool: %s', comp['id'])
Expand Down

0 comments on commit 8a17ca6

Please sign in to comment.