mirror of
https://git.proxmox.com/git/qemu-server
synced 2025-08-04 16:38:16 +00:00
parse config: do not validate informative values in cloud init section
Suggested-by: Wolfgang Bumiller <w.bumiller@proxmox.com> Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
parent
7e554ab102
commit
c229961ad3
@ -2492,6 +2492,11 @@ sub parse_vm_config {
|
||||
} elsif ($line =~ m/^([a-z][a-z_]*\d*):\s*(.+?)\s*$/) {
|
||||
my $key = $1;
|
||||
my $value = $2;
|
||||
if ($section eq 'cloudinit') {
|
||||
# ignore validation only used for informative purpose
|
||||
$conf->{$key} = $value;
|
||||
next;
|
||||
}
|
||||
eval { $value = check_type($key, $value); };
|
||||
if ($@) {
|
||||
$handle_error->("vm $vmid - unable to parse value of '$key' - $@");
|
||||
|
Loading…
Reference in New Issue
Block a user