Signed-off-by: jose luis <2064537+sosan@users.noreply.github.com>
This commit is contained in:
jose luis 2024-04-10 20:26:40 +02:00
parent c9c1080306
commit a19dd1416e
No known key found for this signature in database
GPG Key ID: 6D23FAD11F88081A

View File

@ -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 {