mirror of
https://git.proxmox.com/git/pve-manager
synced 2025-08-06 13:50:28 +00:00
node config: die on type failure
as else we'd continued with bogus data and possible write out something stupid Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
parent
c8d8937c38
commit
a64b0ed59c
@ -192,8 +192,8 @@ sub parse_node_config {
|
||||
if ($line =~ /^([a-z][a-z-_]*\d*):\s*(\S.*)\s*$/) {
|
||||
my $key = $1;
|
||||
my $value = $2;
|
||||
eval { $value = check_type($key, $value); };
|
||||
warn "cannot parse value of '$key' in node config: $@" if $@;
|
||||
$value = eval { check_type($key, $value) };
|
||||
die "cannot parse value of '$key' in node config: $@" if $@;
|
||||
$conf->{$key} = $value;
|
||||
} else {
|
||||
warn "cannot parse line '$line' in node config\n";
|
||||
|
Loading…
Reference in New Issue
Block a user