Skip to content

Commit

Permalink
Fixed a bug where the zfs reports a non int error value in zpool status
Browse files Browse the repository at this point in the history
  • Loading branch information
fractalram committed Dec 10, 2015
1 parent bff22db commit 7ce3b79
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions site-packages/integralstor_common/zfs.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,9 +81,9 @@ def get_config_line_details(line):
if d['type'] not in ['cache', 'logs']:
status_d = {}
status_d['state'] = parts[1]
status_d['read'] = int(parts[2])
status_d['write'] = int(parts[3])
status_d['chksum'] = int(parts[4])
status_d['read'] = parts[2]
status_d['write'] = parts[3]
status_d['chksum'] = parts[4]
d['status'] = status_d
except Exception, e:
return None, 'Error getting config line details : %s'%str(e)
Expand Down

0 comments on commit 7ce3b79

Please sign in to comment.