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.iva...@proxmox.com>
---
 PVE/API2/Disks/ZFS.pm | 1 +
 1 file changed, 1 insertion(+)

diff --git a/PVE/API2/Disks/ZFS.pm b/PVE/API2/Disks/ZFS.pm
index 2884bb0..b815ee7 100644
--- a/PVE/API2/Disks/ZFS.pm
+++ b/PVE/API2/Disks/ZFS.pm
@@ -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.',
            },
-- 
2.20.1



_______________________________________________
pve-devel mailing list
pve-devel@lists.proxmox.com
https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel

Reply via email to