From a19dd1416e35597541acb4f6cc528aa47c626d90 Mon Sep 17 00:00:00 2001 From: jose luis <2064537+sosan@users.noreply.github.com> Date: Wed, 10 Apr 2024 20:26:40 +0200 Subject: [PATCH] added \n Signed-off-by: jose luis <2064537+sosan@users.noreply.github.com> --- pkg/transformer/utils.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pkg/transformer/utils.go b/pkg/transformer/utils.go index db046662..b5d60d25 100644 --- a/pkg/transformer/utils.go +++ b/pkg/transformer/utils.go @@ -277,9 +277,8 @@ func ConfigAnnotations(service kobject.ServiceConfig) map[string]string { func Print(name, path string, trailing string, data []byte, toStdout, generateJSON bool, f *os.File, provider string) (string, error) { file := "" // TODO: we should refactor / change this hack in the future once we have a better solution - re := regexp.MustCompile(`(?s)status:.*`) + re := regexp.MustCompile(`(?s)status:\n.*`) data = re.ReplaceAll(data, nil) - if generateJSON { file = fmt.Sprintf("%s-%s.json", name, trailing) } else {