cephfs: fix variable declared in conditional statement

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
Thomas Lamprecht
2023-04-11 17:15:41 +02:00
parent c698646f00
commit 529b4f9de9

View File

@ -170,8 +170,7 @@ sub check_config {
sub on_add_hook {
my ($class, $storeid, $scfg, %param) = @_;
my $secret = $param{keyring} if defined $param{keyring} // undef;
PVE::CephConfig::ceph_create_keyfile($scfg->{type}, $storeid, $secret);
PVE::CephConfig::ceph_create_keyfile($scfg->{type}, $storeid, $param{keyring});
return;
}