]> git.proxmox.com Git - pve-storage.git/commitdiff
cifs: improve warning for password but no username set
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Tue, 6 Jul 2021 05:50:29 +0000 (07:50 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Tue, 6 Jul 2021 05:50:29 +0000 (07:50 +0200)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
PVE/Storage/CIFSPlugin.pm

index 070ab826c1a78757a994bbe5f6196607d7f46ab4..02210692fddeaeef8f732d5baf30d7e9b29212e1 100644 (file)
@@ -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);