fix use of uninitialized value in parse_ceph_config
Signed-off-by: David Limbeck <d.limbeck@proxmox.com>
This commit is contained in:
committed by
Wolfgang Bumiller
parent
8e3c05c1b9
commit
5b5534a9d7
@ -14,6 +14,7 @@ sub parse_ceph_config {
|
|||||||
my ($filename, $raw) = @_;
|
my ($filename, $raw) = @_;
|
||||||
|
|
||||||
my $cfg = {};
|
my $cfg = {};
|
||||||
|
return $cfg if !defined($raw);
|
||||||
|
|
||||||
my @lines = split /\n/, $raw;
|
my @lines = split /\n/, $raw;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user