Skip to content

Commit

Permalink
tkt-72097: fix traceback in pool.py (#2477)
Browse files Browse the repository at this point in the history
fix traceback in pool.py

Ticket: #72097
  • Loading branch information
yocalebo authored and william-gr committed Jan 25, 2019
1 parent 17bcd12 commit f9da3e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/middlewared/middlewared/plugins/pool.py
Expand Up @@ -405,7 +405,7 @@ def _topology(self, x, geom_scan=True):
if path.startswith('/dev/'):
device = self.middleware.call_sync('disk.label_to_dev', path[5:], geom_scan)
x['device'] = device
x['disk'] = RE_DISKPART.sub(r'\1', device)
x['disk'] = RE_DISKPART.sub(r'\1', device) if device else None
for key in x:
if key == 'type' and isinstance(x[key], str):
x[key] = x[key].upper()
Expand Down

0 comments on commit f9da3e7

Please sign in to comment.