]> git.proxmox.com Git - pve-storage.git/commitdiff
scan_cifs: fix scanning server with no SMB1 fallback
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 1 Jul 2020 13:33:14 +0000 (15:33 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 1 Jul 2020 13:46:30 +0000 (15:46 +0200)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
PVE/Storage.pm

index 44ab62686e3fea521d3c7b04e7a5954f6766852e..bb80b079d7434012176e2d140fc4f376874a576a 100755 (executable)
@@ -1219,7 +1219,9 @@ sub scan_cifs {
            }
        },
     );
            }
        },
     );
-    raise($err) if $err;
+    # only die if we got no share, else it's just some followup check error
+    # (like workgroup querying)
+    raise($err) if $err && !%$res;
 
     return $res;
 }
 
     return $res;
 }