Skip to content

Commit

Permalink
Fix ZFSPool.status
Browse files Browse the repository at this point in the history
  • Loading branch information
themylogin committed Aug 22, 2024
1 parent d8cf036 commit e47fbb1
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions libzfs.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -3000,8 +3000,7 @@ cdef class ZFSPool(object):

property status:
def __get__(self):
stats = self.config[zfs.ZPOOL_CONFIG_VDEV_TREE][zfs.ZPOOL_CONFIG_VDEV_STATS]
return libzfs.zpool_state_to_name(stats[1], stats[2])
return libzfs.zpool_get_state_str(self.handle)

property status_code:
def __get__(self):
Expand Down

0 comments on commit e47fbb1

Please sign in to comment.