From b4e88b7fd33095c41078e4f2116e2049891665d7 Mon Sep 17 00:00:00 2001 From: Thomas Lamprecht Date: Tue, 6 Jul 2021 07:50:29 +0200 Subject: [PATCH] cifs: improve warning for password but no username set Signed-off-by: Thomas Lamprecht --- PVE/Storage/CIFSPlugin.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/PVE/Storage/CIFSPlugin.pm b/PVE/Storage/CIFSPlugin.pm index 070ab82..0221069 100644 --- a/PVE/Storage/CIFSPlugin.pm +++ b/PVE/Storage/CIFSPlugin.pm @@ -160,7 +160,7 @@ sub on_add_hook { if (defined($sensitive{password})) { cifs_set_credentials($sensitive{password}, $storeid); if (!exists($scfg->{username})) { - warn "ignoring password parameter\n"; + warn "storage $storeid: ignoring password parameter, no user set\n"; } } else { cifs_delete_credentials($storeid); @@ -177,7 +177,7 @@ sub on_update_hook { if (defined($sensitive{password})) { cifs_set_credentials($sensitive{password}, $storeid); if (!exists($scfg->{username})) { - warn "ignoring password parameter\n"; + warn "storage $storeid: ignoring password parameter, no user set\n"; } } else { cifs_delete_credentials($storeid);