[pve-devel] [PATCH storage 3/3] pvesm: encryption key parameter should load files
Wolfgang Bumiller
w.bumiller at proxmox.com
Thu Jul 9 10:25:44 CEST 2020
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 at proxmox.com>
---
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};
}
--
2.20.1
More information about the pve-devel
mailing list