]> git.proxmox.com Git - pve-storage.git/blobdiff - PVE/Storage.pm
scan_cifs: fix scanning server with no SMB1 fallback
[pve-storage.git] / 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;
 }