Skip to content

Commit 36ed3e0

Browse files
Simon Emmsroboquat
authored andcommitted
[installer]: separate out the rendering to two calls
Exporting the content via fmt.Printf appears to intermittently change strings prepended with %
1 parent 22d6ada commit 36ed3e0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

installer/cmd/render.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,8 @@ A config file is required which can be generated with the init command.`,
126126

127127
// output the YAML to stdout
128128
for _, c := range sortedObjs {
129-
fmt.Printf("---\n# %s/%s %s\n%s\n", c.TypeMeta.APIVersion, c.TypeMeta.Kind, c.Metadata.Name, c.Content)
129+
fmt.Printf("---\n# %s/%s %s\n", c.TypeMeta.APIVersion, c.TypeMeta.Kind, c.Metadata.Name)
130+
fmt.Println(c.Content)
130131
}
131132

132133
return nil

0 commit comments

Comments
 (0)