summaryrefslogtreecommitdiff
path: root/cmd/podman/logout.go
diff options
context:
space:
mode:
authorTomSweeneyRedHat <tsweeney@redhat.com>2018-10-16 17:58:12 -0400
committerTomSweeneyRedHat <tsweeney@redhat.com>2018-10-22 19:20:34 -0400
commite75b3477ce2acf8af49a13e8197401ee00bff459 (patch)
tree9682264be226052e9ccc4327e3d55e8097c690dc /cmd/podman/logout.go
parent5b2478ed87eedd8178c1672a786f95a6716a8edb (diff)
downloadpodman-e75b3477ce2acf8af49a13e8197401ee00bff459.tar.gz
podman-e75b3477ce2acf8af49a13e8197401ee00bff459.tar.bz2
podman-e75b3477ce2acf8af49a13e8197401ee00bff459.zip
Handle http/https in registry given to login/out
Signed-off-by: TomSweeneyRedHat <tsweeney@redhat.com>
Diffstat (limited to 'cmd/podman/logout.go')
-rw-r--r--cmd/podman/logout.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/cmd/podman/logout.go b/cmd/podman/logout.go
index 099464e4f..3cdb606b5 100644
--- a/cmd/podman/logout.go
+++ b/cmd/podman/logout.go
@@ -44,7 +44,7 @@ func logoutCmd(c *cli.Context) error {
}
var server string
if len(args) == 1 {
- server = args[0]
+ server = scrubServer(args[0])
}
authfile := getAuthFile(c.String("authfile"))
@@ -54,14 +54,14 @@ func logoutCmd(c *cli.Context) error {
if err := config.RemoveAllAuthentication(sc); err != nil {
return err
}
- fmt.Println("Remove login credentials for all registries")
+ fmt.Println("Removed login credentials for all registries")
return nil
}
err := config.RemoveAuthentication(sc, server)
switch err {
case nil:
- fmt.Printf("Remove login credentials for %s\n", server)
+ fmt.Printf("Removed login credentials for %s\n", server)
return nil
case config.ErrNotLoggedIn:
return errors.Errorf("Not logged into %s\n", server)