]> git.proxmox.com Git - pve-storage.git/blobdiff - PVE/API2/Storage/Config.pm
PVE/Storage/PBSPlugin.pm: start new proxmox backup server plugin
[pve-storage.git] / PVE / API2 / Storage / Config.pm
index e00dc95536f7535f1edf48561830bcf82b403836..d20278495136b772c3fe0318454e36daf683b2c0 100755 (executable)
@@ -136,7 +136,7 @@ __PACKAGE__->register_method ({
        my $password;
        # always extract pw, else it gets written to the www-data readable scfg
        if (my $tmp_pw = extract_param($param, 'password')) {
-           if ($type eq 'cifs' && $param->{username}) {
+           if (($type eq 'pbs') || ($type eq 'cifs' && $param->{username})) {
                $password = $tmp_pw;
            } else {
                warn "ignore password parameter\n";