96e2453797e72430db3b6681cd1c5402ce4badd2
When the last tag of a container 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 'pct 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. Keep it in the pending section, where it is still needed for removing all tags with a pending change. Add a basic test for parsing and writing container configs, similar to the one in qemu-server, to cover this. Signed-off-by: Michal Fox <me@dualfroz.com>
Description
My contributions to proxmox-git/pve-container: 3 commits
81 KiB
0 Stars
1 Watchers
0 Forks
Languages
Perl
99.2%
Makefile
0.8%