X-Git-Url: https://git.proxmox.com/?p=pve-common.git;a=blobdiff_plain;f=src%2FPVE%2FSectionConfig.pm;h=a6301e262598d0ee7886144ec104cb51301e5b24;hp=3030f6018e024d804de705f3c29c204e6613f160;hb=3e3871c3ee5d38633f57d38e916aebffd75b14a8;hpb=a7f30ebf27348ece696bb14e95f0ac5bd248e437 diff --git a/src/PVE/SectionConfig.pm b/src/PVE/SectionConfig.pm index 3030f60..a6301e2 100644 --- a/src/PVE/SectionConfig.pm +++ b/src/PVE/SectionConfig.pm @@ -400,7 +400,8 @@ my $format_config_line = sub { if ($key =~ m/[\n\r]/) || ($value =~ m/[\n\r]/); if ($ct eq 'boolean') { - return $value ? "\t$key\n" : ''; + return "\t$key " . ($value ? 1 : 0) . "\n" + if defined($value); } else { return "\t$key $value\n" if "$value" ne ''; }