Fix build after c/image changes

Signed-off-by: Matthew Heon <matthew.heon@gmail.com>

Closes: #505
Approved by: rhatdan
This commit is contained in:
Matthew Heon 2018-03-16 10:27:52 -04:00 committed by Atomic Bot
parent b8386ce9e0
commit c08a1e0b11
1 changed files with 4 additions and 1 deletions

View File

@ -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")