forked from LaconicNetwork/kompose
added \n
Signed-off-by: jose luis <2064537+sosan@users.noreply.github.com>
This commit is contained in:
parent
c9c1080306
commit
a19dd1416e
@ -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 {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user