From: Thomas Lamprecht Date: Tue, 1 Dec 2020 17:08:58 +0000 (+0100) Subject: api: scan cifs: port over NT_STATUS filter from pve-manager X-Git-Url: https://git.proxmox.com/?p=pve-storage.git;a=commitdiff_plain;h=e65abdb4587e482c9806c4a43a94df7a1973a2c9 api: scan cifs: port over NT_STATUS filter from pve-manager Signed-off-by: Thomas Lamprecht --- diff --git a/PVE/API2/Storage/Scan.pm b/PVE/API2/Storage/Scan.pm index 0e6fd9a..44d6628 100644 --- a/PVE/API2/Storage/Scan.pm +++ b/PVE/API2/Storage/Scan.pm @@ -127,6 +127,7 @@ __PACKAGE__->register_method({ my $data = []; foreach my $k (sort keys %$res) { + next if $k =~ m/NT_STATUS_/; push @$data, { share => $k, description => $res->{$k} }; }