Merge pull request #124597 from TessaIO/fix-drain-error-message

fix: add whitespace to drain error message
This commit is contained in:
Kubernetes Prow Robot 2024-04-30 11:34:33 -07:00 committed by GitHub
commit dd68c5f240
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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)