From e47fbb13260687431896dda502d4049f53b44b37 Mon Sep 17 00:00:00 2001 From: themylogin Date: Thu, 22 Aug 2024 10:55:04 +0200 Subject: [PATCH] Fix `ZFSPool.status` --- libzfs.pyx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/libzfs.pyx b/libzfs.pyx index 592f56f..77b2696 100644 --- a/libzfs.pyx +++ b/libzfs.pyx @@ -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):