check_zfs_zpool: adjust log devices count
This commit is contained in:
parent
432da14dfd
commit
3fd8751595
|
@ -288,7 +288,7 @@ def main(args):
|
|||
', '.join([*set(warn_drives)])]
|
||||
|
||||
if not len(warn_drives) and not len(crit_drives):
|
||||
out_str = ['OK', '-', f'{len(vdev_devices)} {args.check_type} devices for {args.pool_name} are healthy']
|
||||
out_str = ['OK', '-', f'{len([x for x in vdev_devices if not x["device"].startswith("mirror")])} {args.check_type} devices for {args.pool_name} are healthy']
|
||||
|
||||
print(*out_str)
|
||||
print(list_to_markdown_table(table_data, align='left', seperator='!', borders=False))
|
||||
|
|
Loading…
Reference in New Issue