From d37729b95b4373ceaae7bed381b9072da16d117f Mon Sep 17 00:00:00 2001 From: Thomas Lamprecht Date: Wed, 1 Jul 2020 15:33:14 +0200 Subject: [PATCH] scan_cifs: fix scanning server with no SMB1 fallback Signed-off-by: Thomas Lamprecht --- PVE/Storage.pm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/PVE/Storage.pm b/PVE/Storage.pm index 44ab626..bb80b07 100755 --- a/PVE/Storage.pm +++ b/PVE/Storage.pm @@ -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; } -- 2.39.2