disks: zfs: scan is only returned optionally

the line is not present if a zpool has never been scrubbed before
(e.g. if it's freshly setup)

Signed-off-by: Stoiko Ivanov <s.ivanov@proxmox.com>
This commit is contained in:
Stoiko Ivanov
2021-02-25 22:23:04 +01:00
committed by Thomas Lamprecht
parent c726ce1705
commit 977b80c8ab

View File

@ -163,6 +163,7 @@ __PACKAGE__->register_method ({
description => 'Information about the recommended action to fix the state.',
},
scan => {
optional => 1,
type => 'string',
description => 'Information about the last/current scrub.',
},