From ce2e2733593c17e1ff1d42a03a3b92986824ced5 Mon Sep 17 00:00:00 2001 From: Thomas Lamprecht Date: Thu, 9 Jul 2020 11:53:27 +0200 Subject: [PATCH] pbs: rename encryption_key param to encryption-key Signed-off-by: Thomas Lamprecht --- PVE/Storage/PBSPlugin.pm | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/PVE/Storage/PBSPlugin.pm b/PVE/Storage/PBSPlugin.pm index 10e4fbc..c146a0c 100644 --- a/PVE/Storage/PBSPlugin.pm +++ b/PVE/Storage/PBSPlugin.pm @@ -37,7 +37,7 @@ sub properties { }, # openssl s_client -connect :8007 2>&1 |openssl x509 -fingerprint -sha256 fingerprint => get_standard_option('fingerprint-sha256'), - encryption_key => { + 'encryption-key' => { description => "Encryption key.", type => 'string', }, @@ -52,8 +52,8 @@ sub options { disable => { optional => 1}, content => { optional => 1}, username => { optional => 1 }, - password => { optional => 1}, - encryption_key => { optional => 1 }, + password => { optional => 1 }, + 'encryption-key' => { optional => 1 }, maxfiles => { optional => 1 }, fingerprint => { optional => 1 }, }; @@ -266,7 +266,7 @@ sub on_add_hook { pbs_delete_password($scfg, $storeid); } - if (defined(my $encryption_key = $param{encryption_key})) { + if (defined(my $encryption_key = $param{'encryption-key'})) { pbs_set_encryption_key($scfg, $storeid, $encryption_key); } else { pbs_delete_encryption_key($scfg, $storeid); @@ -284,8 +284,8 @@ sub on_update_hook { } } - if (exists($param{encryption_key})) { - if (defined(my $encryption_key = delete($param{encryption_key}))) { + if (exists($param{'encryption-key'})) { + if (defined(my $encryption_key = delete($param{'encryption-key'}))) { pbs_set_encryption_key($scfg, $storeid, $encryption_key); } else { pbs_delete_encryption_key($scfg, $storeid);