]> git.proxmox.com Git - pve-storage.git/blobdiff - PVE/Storage/PBSPlugin.pm
pbs: warn about missing, but config master key
[pve-storage.git] / PVE / Storage / PBSPlugin.pm
index b90a2ddb7e262e81b3016d451fef6c40f73c83a4..21a2a0aada9d47d21ed33634ec4c15d665674aef 100644 (file)
@@ -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";
     }