]> git.proxmox.com Git - pve-storage.git/blobdiff - PVE/CephConfig.pm
fix use of uninitialized value in parse_ceph_config
[pve-storage.git] / PVE / CephConfig.pm
index 5b2d19e786a99b8bb87cbbfae94da4e444b5f0a2..b420fcc3ca83cb61e4d58cf772595f561f502a57 100644 (file)
@@ -14,6 +14,7 @@ sub parse_ceph_config {
     my ($filename, $raw) = @_;
 
     my $cfg = {};
+    return $cfg if !defined($raw);
 
     my @lines = split /\n/, $raw;