mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-15 14:14:39 +00:00
fix apply_set_last_applied dry-run output issue
This commit is contained in:
@@ -222,9 +222,9 @@ func (o *SetLastAppliedOptions) formatPrinter(output string, buf []byte, w io.Wr
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
fmt.Fprintf(w, string(jsonBuffer.Bytes()))
|
fmt.Fprintf(w, "%s\n", jsonBuffer.String())
|
||||||
case "yaml":
|
case "yaml":
|
||||||
fmt.Fprintf(w, string(yamlOutput))
|
fmt.Fprintf(w, "%s\n", string(yamlOutput))
|
||||||
}
|
}
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user