dualfroz b8ae251afe fix #7173: write config: drop empty tag list
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>
2026-10-02 16:11:58 +02:00
S
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%