]> git.proxmox.com Git - pve-container.git/commitdiff
config update: ensure that tags are unique
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Mon, 21 Nov 2022 07:28:20 +0000 (08:28 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Mon, 21 Nov 2022 07:28:29 +0000 (08:28 +0100)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
src/PVE/LXC/Config.pm

index 181e1083f8314eae31ca171119d233730f84ebad..c2bec1f6b24a8ee0f01c564f39a3356f44e3e3c8 100644 (file)
@@ -1114,6 +1114,8 @@ sub update_pct_config {
            $value = PVE::LXC::verify_searchdomain_list($value);
        } elsif ($opt eq 'unprivileged') {
            die "unable to modify read-only option: '$opt'\n";
+       } elsif ($opt eq 'tags') {
+           $value = PVE::GuestHelpers::get_unique_tags($value);
        } elsif ($opt =~ m/^net(\d+)$/) {
            my $res = PVE::JSONSchema::parse_property_string($netconf_desc, $value);