fix apply_set_last_applied dry-run output issue

This commit is contained in:
Shiyang Wang
2017-08-13 17:52:38 +08:00
parent 47b5a52224
commit b5737ff08d

View File

@@ -222,9 +222,9 @@ func (o *SetLastAppliedOptions) formatPrinter(output string, buf []byte, w io.Wr
if err != nil {
return err
}
fmt.Fprintf(w, string(jsonBuffer.Bytes()))
fmt.Fprintf(w, "%s\n", jsonBuffer.String())
case "yaml":
fmt.Fprintf(w, string(yamlOutput))
fmt.Fprintf(w, "%s\n", string(yamlOutput))
}
return nil
}