From 9a6af580329633985afb48bc9f72cee153506d45 Mon Sep 17 00:00:00 2001 From: Thomas Lamprecht Date: Mon, 21 Nov 2022 08:28:20 +0100 Subject: [PATCH] config update: ensure that tags are unique Signed-off-by: Thomas Lamprecht --- src/PVE/LXC/Config.pm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/PVE/LXC/Config.pm b/src/PVE/LXC/Config.pm index 181e108..c2bec1f 100644 --- a/src/PVE/LXC/Config.pm +++ b/src/PVE/LXC/Config.pm @@ -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); -- 2.39.2