From de635c2668baa318d60513949848046935b5ff08 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fabian=20Gr=C3=BCnbichler?= Date: Tue, 16 Aug 2022 12:33:54 +0200 Subject: [PATCH] pbs: warn about missing, but config master key MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Fabian Grünbichler --- PVE/Storage/PBSPlugin.pm | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/PVE/Storage/PBSPlugin.pm b/PVE/Storage/PBSPlugin.pm index b90a2dd..21a2a0a 100644 --- a/PVE/Storage/PBSPlugin.pm +++ b/PVE/Storage/PBSPlugin.pm @@ -210,7 +210,11 @@ sub pbs_open_master_pubkey { my $keyfd; if (!open($keyfd, '<', $master_pubkey_file)) { - return undef if $! == ENOENT; + if ($! == ENOENT) { + warn "master public key configured but no key file found!\n" + if $scfg->{'master-pubkey'}; + return undef; + } die "failed to open master public key: $master_pubkey_file: $!\n"; }