Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Reported-by: Oguz Bektas <o.bektas@proxmox.com>
sub parse_datacenter_config {
my ($filename, $raw) = @_;
sub parse_datacenter_config {
my ($filename, $raw) = @_;
+ $raw = '' if !defined($raw);
+
# description may be comment or key-value pair (or both)
my $comment = '';
my @lines = split(/\n/, $raw);
# description may be comment or key-value pair (or both)
my $comment = '';
my @lines = split(/\n/, $raw);
}
# parse_config ignores lines with # => use $raw
}
# parse_config ignores lines with # => use $raw
- my $res = PVE::JSONSchema::parse_config($datacenter_schema, $filename, $raw // '');
+ my $res = PVE::JSONSchema::parse_config($datacenter_schema, $filename, $raw);
$res->{description} = $comment;
$res->{description} = $comment;