diff --git a/proxmoxtf/resource/container.go b/proxmoxtf/resource/container.go index 38467201..8ae4138c 100644 --- a/proxmoxtf/resource/container.go +++ b/proxmoxtf/resource/container.go @@ -605,10 +605,13 @@ func Container() *schema.Resource { }, }, mkResourceVirtualEnvironmentContainerTags: { - Type: schema.TypeList, - Description: "Tags of the container. This is only meta information.", - Optional: true, - Elem: &schema.Schema{Type: schema.TypeString}, + Type: schema.TypeList, + Description: "Tags of the container. This is only meta information.", + Optional: true, + Elem: &schema.Schema{ + Type: schema.TypeString, + ValidateFunc: validation.StringIsNotEmpty, + }, DiffSuppressFunc: suppressIfListsAreEqualIgnoringOrder, DiffSuppressOnRefresh: true, }, diff --git a/proxmoxtf/resource/vm.go b/proxmoxtf/resource/vm.go index 6da17b15..b7f7a4da 100644 --- a/proxmoxtf/resource/vm.go +++ b/proxmoxtf/resource/vm.go @@ -1117,10 +1117,13 @@ func VM() *schema.Resource { Default: dvResourceVirtualEnvironmentVMTabletDevice, }, mkResourceVirtualEnvironmentVMTags: { - Type: schema.TypeList, - Description: "Tags of the virtual machine. This is only meta information.", - Optional: true, - Elem: &schema.Schema{Type: schema.TypeString}, + Type: schema.TypeList, + Description: "Tags of the virtual machine. This is only meta information.", + Optional: true, + Elem: &schema.Schema{ + Type: schema.TypeString, + ValidateFunc: validation.StringIsNotEmpty, + }, DiffSuppressFunc: suppressIfListsAreEqualIgnoringOrder, DiffSuppressOnRefresh: true, },