From baf7712010e15c584d4b03d5222524d7fbdcef6f Mon Sep 17 00:00:00 2001 From: Wolfgang Bumiller Date: Thu, 9 Jul 2020 10:25:44 +0200 Subject: [PATCH] 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 --- PVE/CLI/pvesm.pm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/PVE/CLI/pvesm.pm b/PVE/CLI/pvesm.pm index 4f934d6..f223c92 100755 --- a/PVE/CLI/pvesm.pm +++ b/PVE/CLI/pvesm.pm @@ -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}; }