From a985afb0af968060d4a505d3b847a0d6e32ae181 Mon Sep 17 00:00:00 2001 From: Cyberes Date: Thu, 22 Jun 2023 15:42:41 -0600 Subject: [PATCH] fix check_zfs_zpool when only one disk in zpool --- check_zfs_zpool.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/check_zfs_zpool.py b/check_zfs_zpool.py index 4a6e6d0..90532de 100755 --- a/check_zfs_zpool.py +++ b/check_zfs_zpool.py @@ -101,7 +101,9 @@ def get_vdev_info(zpool: str, vdev_type: str): for line in list(filter(None, output_zpool_logs.split('\n'))): data = list(filter(None, clean_device_list(line).split(' '))) zpool_vdev_devices.append({ - 'pool': not (is_dash(data[2]) and is_dash(data[3]) and is_dash(data[6]) and is_dash(data[7])), + 'pool': False # not (is_dash(data[2]) and is_dash(data[3]) and is_dash(data[6]) and is_dash(data[7])), + # TODO: better pool detection + 'device': data[0], 'size': data[1], 'alloc': data[2],