]> git.proxmox.com Git - pve-storage.git/commitdiff
disks: zfs: scan is only returned optionally
authorStoiko Ivanov <s.ivanov@proxmox.com>
Thu, 25 Feb 2021 21:23:04 +0000 (22:23 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Fri, 26 Feb 2021 08:10:08 +0000 (09:10 +0100)
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>
PVE/API2/Disks/ZFS.pm

index 2884bb064dfe806c79a6b49f86b5b4bb4be8be77..b815ee7443e39ebae737e557b3df6c5f77cdb790 100644 (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.',
            },