aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthew Heon <matthew.heon@gmail.com>2018-03-16 10:27:52 -0400
committerAtomic Bot <atomic-devel@projectatomic.io>2018-03-16 14:35:07 +0000
commitc08a1e0b1124cf0b7c4bb80e09717134540ec593 (patch)
tree3dcf363cd13b0d1255967a231f8610ab2c124279
parentb8386ce9e0361e98112d707724ca5a7747a85b0b (diff)
downloadpodman-c08a1e0b1124cf0b7c4bb80e09717134540ec593.tar.gz
podman-c08a1e0b1124cf0b7c4bb80e09717134540ec593.tar.bz2
podman-c08a1e0b1124cf0b7c4bb80e09717134540ec593.zip
Fix build after c/image changes
Signed-off-by: Matthew Heon <matthew.heon@gmail.com> Closes: #505 Approved by: rhatdan
-rw-r--r--cmd/podman/login.go5
1 files changed, 4 insertions, 1 deletions
diff --git a/cmd/podman/login.go b/cmd/podman/login.go
index f57f34532..a3eb60ea4 100644
--- a/cmd/podman/login.go
+++ b/cmd/podman/login.go
@@ -67,7 +67,10 @@ func loginCmd(c *cli.Context) error {
sc := common.GetSystemContext("", c.String("authfile"), false)
// username of user logged in to server (if one exists)
- userFromAuthFile := config.GetUserLoggedIn(sc, server)
+ userFromAuthFile, err := config.GetUserLoggedIn(sc, server)
+ if err != nil {
+ return errors.Wrapf(err, "error getting logged-in user")
+ }
username, password, err := getUserAndPass(c.String("username"), c.String("password"), userFromAuthFile)
if err != nil {
return errors.Wrapf(err, "error getting username and password")