pvesm: encryption key parameter should load files

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>
This commit is contained in:
Wolfgang Bumiller
2020-07-09 10:25:44 +02:00
committed by Thomas Lamprecht
parent 72385de9e2
commit baf7712010

View File

@ -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};
}