rbd: 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:14:53 +02:00
parent f11bdb1731
commit c698646f00

View File

@ -417,8 +417,7 @@ sub options {
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;
}