fix another encryption_key vs encryption-key instance

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
This commit is contained in:
Wolfgang Bumiller
2020-07-14 13:51:26 +02:00
parent 842e23e347
commit b3b63fc27d

View File

@ -120,7 +120,7 @@ my sub extract_sensitive_params :prototype($$) {
my %delete = map { $_ => 1 } ($delete_list || [])->@*;
# always extract pw and keys, so they don't get written to the www-data readable scfg
for my $opt (qw(password encryption_key)) {
for my $opt (qw(password encryption-key)) {
# First handle deletions as explicitly setting `undef`, afterwards new values may override
# it.
if (exists($delete{$opt})) {