From d28df0c330a63a1e7725b44cb9ba75c0dab4d882 Mon Sep 17 00:00:00 2001 From: maidlover <117573165+maidl0ver@users.noreply.github.com> Date: Tue, 29 Jul 2025 20:30:47 +0000 Subject: [PATCH] Add validation and diff suppression Co-authored-by: Pavel Boldyrev <627562+bpg@users.noreply.github.com> Signed-off-by: maidlover <117573165+maidl0ver@users.noreply.github.com> --- proxmoxtf/resource/container/container.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/proxmoxtf/resource/container/container.go b/proxmoxtf/resource/container/container.go index 2ac11707..f8fa86f9 100644 --- a/proxmoxtf/resource/container/container.go +++ b/proxmoxtf/resource/container/container.go @@ -358,8 +358,11 @@ func Container() *schema.Resource { Description: "Extra mount options", Optional: true, Elem: &schema.Schema{ - Type: schema.TypeString, + Type: schema.TypeString, + ValidateFunc: validation.StringIsNotEmpty, }, + DiffSuppressFunc: structure.SuppressIfListsAreEqualIgnoringOrder, + DiffSuppressOnRefresh: true, }, }, },