Merge pull request #55044 from ahmetb/wording

Automatic merge from submit-queue. If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>.

kubectl/config/rename: fix wording

Using `Context %q renamed to %q.` in rename-context to be consistent with other
commands like delete-context, set-context, use-context.

/sig cli
/release-note none
This commit is contained in:
Kubernetes Submit Queue 2017-11-09 01:52:26 -08:00 committed by GitHub
commit 79d858660c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -130,6 +130,6 @@ func (o RenameContextOptions) RunRenameContext(out io.Writer) error {
return err return err
} }
fmt.Fprintf(out, "Context %q was renamed to %q.\n", o.contextName, o.newName) fmt.Fprintf(out, "Context %q renamed to %q.\n", o.contextName, o.newName)
return nil return nil
} }

View File

@ -62,7 +62,7 @@ func TestRenameContext(t *testing.T) {
initialConfig: initialConfig, initialConfig: initialConfig,
expectedConfig: expectedConfig, expectedConfig: expectedConfig,
args: []string{currentContext, newContext}, args: []string{currentContext, newContext},
expectedOut: fmt.Sprintf("Context %q was renamed to %q.\n", currentContext, newContext), expectedOut: fmt.Sprintf("Context %q renamed to %q.\n", currentContext, newContext),
expectedErr: "", expectedErr: "",
} }
test.run(t) test.run(t)