From 977b80c8abaa12b861028995a6d3991b65cc21f7 Mon Sep 17 00:00:00 2001 From: Stoiko Ivanov Date: Thu, 25 Feb 2021 22:23:04 +0100 Subject: [PATCH] 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 --- 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.', },