fix check_zfs_zpool when only one disk in zpool
This commit is contained in:
parent
ad238d728b
commit
a985afb0af
|
@ -101,7 +101,9 @@ def get_vdev_info(zpool: str, vdev_type: str):
|
||||||
for line in list(filter(None, output_zpool_logs.split('\n'))):
|
for line in list(filter(None, output_zpool_logs.split('\n'))):
|
||||||
data = list(filter(None, clean_device_list(line).split(' ')))
|
data = list(filter(None, clean_device_list(line).split(' ')))
|
||||||
zpool_vdev_devices.append({
|
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],
|
'device': data[0],
|
||||||
'size': data[1],
|
'size': data[1],
|
||||||
'alloc': data[2],
|
'alloc': data[2],
|
||||||
|
|
Loading…
Reference in New Issue