check_zfs_zpool: adjust log devices count

This commit is contained in:
Cyberes 2024-02-23 17:13:29 -07:00
parent 432da14dfd
commit 3fd8751595
1 changed files with 1 additions and 1 deletions

View File

@ -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))