1
0
mirror of https://github.com/docker/cli.git synced 2026-01-16 20:22:36 +03:00

fix merge issue

Upstream-commit: 6cb908bb823409661bfedab806da924d232bf200
Component: engine
This commit is contained in:
Victor Vieux
2013-08-13 13:35:34 +00:00
parent 82ad117950
commit eb493ee13b

View File

@@ -857,7 +857,7 @@ func (cli *DockerCli) CmdPush(args ...string) error {
}
if err := push(); err != nil {
if err == fmt.Errorf("Authentication is required.") {
if err.Error() == "Authentication is required." {
if err = cli.checkIfLogged("push"); err == nil {
return push()
}