]> git.proxmox.com Git - pve-storage.git/commitdiff
api: scan cifs: port over NT_STATUS filter from pve-manager
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Tue, 1 Dec 2020 17:08:58 +0000 (18:08 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Tue, 1 Dec 2020 18:22:47 +0000 (19:22 +0100)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
PVE/API2/Storage/Scan.pm

index 0e6fd9a3117df12f56b6828040cf96e5db01e37c..44d6628ef53d5fb61187121a2cb8aaa6f705c8d2 100644 (file)
@@ -127,6 +127,7 @@ __PACKAGE__->register_method({
 
        my $data = [];
        foreach my $k (sort keys %$res) {
 
        my $data = [];
        foreach my $k (sort keys %$res) {
+           next if $k =~ m/NT_STATUS_/;
            push @$data, { share => $k, description => $res->{$k} };
        }
 
            push @$data, { share => $k, description => $res->{$k} };
        }