Skip to content

Commit

Permalink
Merge pull request kubernetes#124597 from TessaIO/fix-drain-error-mes…
Browse files Browse the repository at this point in the history
…sage

fix: add whitespace to drain error message
  • Loading branch information
k8s-ci-robot committed Apr 30, 2024
2 parents 108fd24 + 487f835 commit dd68c5f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion staging/src/k8s.io/kubectl/pkg/cmd/drain/drain.go
Original file line number Diff line number Diff line change
Expand Up @@ -343,7 +343,7 @@ func (o *DrainCmdOptions) RunDrain() error {

printObj(info.Object, o.Out)
} else {
fmt.Fprintf(o.ErrOut, "error: unable to drain node %q due to error:%s, continuing command...\n", info.Name, err)
fmt.Fprintf(o.ErrOut, "error: unable to drain node %q due to error: %s, continuing command...\n", info.Name, err)

if !drainedNodes.Has(info.Name) {
fatal = append(fatal, err)
Expand Down

0 comments on commit dd68c5f

Please sign in to comment.