mirror of https://github.com/docker/cli.git
Merge pull request #29527 from allencloud/change-minor-mistake
change minor mistake of spelling
This commit is contained in:
commit
a4be350fb0
|
@ -11,7 +11,7 @@ import (
|
||||||
"github.com/spf13/cobra"
|
"github.com/spf13/cobra"
|
||||||
)
|
)
|
||||||
|
|
||||||
// NewLogoutCommand creates a new `docker login` command
|
// NewLogoutCommand creates a new `docker logout` command
|
||||||
func NewLogoutCommand(dockerCli *command.DockerCli) *cobra.Command {
|
func NewLogoutCommand(dockerCli *command.DockerCli) *cobra.Command {
|
||||||
cmd := &cobra.Command{
|
cmd := &cobra.Command{
|
||||||
Use: "logout [SERVER]",
|
Use: "logout [SERVER]",
|
||||||
|
|
|
@ -277,7 +277,7 @@ func prettyPrintInfo(dockerCli *command.DockerCli, info types.Info) error {
|
||||||
for _, label := range info.Labels {
|
for _, label := range info.Labels {
|
||||||
stringSlice := strings.SplitN(label, "=", 2)
|
stringSlice := strings.SplitN(label, "=", 2)
|
||||||
if len(stringSlice) > 1 {
|
if len(stringSlice) > 1 {
|
||||||
// If there is a conflict we will throw out an warning
|
// If there is a conflict we will throw out a warning
|
||||||
if v, ok := labelMap[stringSlice[0]]; ok && v != stringSlice[1] {
|
if v, ok := labelMap[stringSlice[0]]; ok && v != stringSlice[1] {
|
||||||
fmt.Fprintln(dockerCli.Err(), "WARNING: labels with duplicate keys and conflicting values have been deprecated")
|
fmt.Fprintln(dockerCli.Err(), "WARNING: labels with duplicate keys and conflicting values have been deprecated")
|
||||||
break
|
break
|
||||||
|
|
Loading…
Reference in New Issue