b8ae251afe10eac2f195fd71cb5f3efa358e213c
When the last tag of a VM gets removed, for example in the web UI, the API gets an empty 'tags' value, which then ends up as an empty 'tags:' line in the config and in the output of 'qm config'. As the config parser reads that line back as a single space, it also gets written out again on every following config change. Skip a tag list without any tag when writing the config, which also cleans up existing configs with such a line on their next change. The pending section still needs to keep it, otherwise the removal of all tags would get lost between writing the pending change and applying it. Signed-off-by: Michal Fox <me@dualfroz.com>
Description
My contributions to proxmox-git/qemu-server: 12 commits
166 KiB
0 Stars
1 Watchers
0 Forks
Languages
Perl
99.6%
Batchfile
0.4%