Go to file
Stoiko Ivanov dd59a7cac0 fix #2834: skip refs in config_with_pending_array
With the refactoring of config_with_pending_array in
daf8fca57a a few sanity checks on parsed configs
were dropped.

One case where a config value should be skipped, instead of parsed and added
is when the value is not scalar. This is the case for the raw lxc keys
(e.g. lxc.init.cmd, lxc.apparmor.profile) - which get added as array to the
'lxc' key.

This patch reintroduces the skipping of non-scalar values, when parsing the
config but not for the pending values.
From a short look through the commit history the sanity checks were in place
since 2014 (introduced in qemu-server for handling pending configuration
changes), and their removal did not cause any other regressions.
To my knowledge only the raw lxc config keys are parsed into a non-scalar
value.

Tested by adding a 'lxc.init.cmd' key to a container config.

Signed-off-by: Stoiko Ivanov <s.ivanov@proxmox.com>
2020-07-11 18:45:26 +02:00
debian bump version to 3.0-11 2020-07-07 18:51:35 +02:00
PVE fix #2834: skip refs in config_with_pending_array 2020-07-11 18:45:26 +02:00
tests fix some typos 2020-02-08 16:03:49 +01:00
Makefile add basic abstract config test system 2019-10-18 17:48:03 +02:00