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:
committed by
Thomas Lamprecht
parent
72385de9e2
commit
baf7712010
@ -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};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user