From 529b4f9de9bd638306820e2f4d9a8cff12ea5488 Mon Sep 17 00:00:00 2001 From: Thomas Lamprecht Date: Tue, 11 Apr 2023 17:15:41 +0200 Subject: [PATCH] cephfs: fix variable declared in conditional statement Signed-off-by: Thomas Lamprecht --- PVE/Storage/CephFSPlugin.pm | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/PVE/Storage/CephFSPlugin.pm b/PVE/Storage/CephFSPlugin.pm index 79106cc..db0c2f6 100644 --- a/PVE/Storage/CephFSPlugin.pm +++ b/PVE/Storage/CephFSPlugin.pm @@ -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; } -- 2.39.5