From e65abdb4587e482c9806c4a43a94df7a1973a2c9 Mon Sep 17 00:00:00 2001 From: Thomas Lamprecht Date: Tue, 1 Dec 2020 18:08:58 +0100 Subject: [PATCH] api: scan cifs: port over NT_STATUS filter from pve-manager Signed-off-by: Thomas Lamprecht --- PVE/API2/Storage/Scan.pm | 1 + 1 file changed, 1 insertion(+) 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} }; } -- 2.39.2