]> git.proxmox.com Git - pve-storage.git/commitdiff
pvesm: encryption key parameter should load files
authorWolfgang Bumiller <w.bumiller@proxmox.com>
Thu, 9 Jul 2020 08:25:44 +0000 (10:25 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 9 Jul 2020 09:49:02 +0000 (11:49 +0200)
also `pvesm set` and `pvesm add` should behave the same with
respect to how configuration options are treated

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
PVE/CLI/pvesm.pm

index 4f934d67b91015954b3adbbc402f7b9d7cf9b812..f223c921e9cb5f60d09e6ff20902698d05b7ac88 100755 (executable)
@@ -36,9 +36,11 @@ sub param_mapping {
            return PVE::PTY::read_password("Enter Password: ");
        },
     });
+
     my $mapping = {
        'cifsscan' => [ $password_map ],
-       'create' => [ $password_map ],
+       'create' => [ $password_map, 'encryption_key' ],
+       'update' => [ $password_map, 'encryption_key' ],
     };
     return $mapping->{$name};
 }