From 088ad09e356e1baf17b7cb84656155d192d2909d Mon Sep 17 00:00:00 2001 From: Pavel Boldyrev <627562+bpg@users.noreply.github.com> Date: Sun, 8 Oct 2023 21:14:04 -0400 Subject: [PATCH] fix(lxc): multi-line description always shows as changed (#611) Signed-off-by: Pavel Boldyrev <627562+bpg@users.noreply.github.com> --- proxmoxtf/resource/container.go | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/proxmoxtf/resource/container.go b/proxmoxtf/resource/container.go index 1bb570b0..c60aa48a 100644 --- a/proxmoxtf/resource/container.go +++ b/proxmoxtf/resource/container.go @@ -1745,10 +1745,7 @@ func containerRead(ctx context.Context, d *schema.ResourceData, m interface{}) d if len(clone) == 0 || currentDescription != dvResourceVirtualEnvironmentContainerDescription { if containerConfig.Description != nil { - e = d.Set( - mkResourceVirtualEnvironmentContainerDescription, - strings.TrimSpace(*containerConfig.Description), - ) + e = d.Set(mkResourceVirtualEnvironmentContainerDescription, *containerConfig.Description) } else { e = d.Set(mkResourceVirtualEnvironmentContainerDescription, "") }