Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/ivahaev/amigo
Browse files Browse the repository at this point in the history
  • Loading branch information
Evgeniy Ivakha committed Feb 26, 2017
2 parents d408ec6 + 7caafa1 commit 5134687
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ami.go
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ func (a *amiAdapter) login() error {
}

var result = a.exec(action)
if result["Response"] != "Success" {
if result["Response"] != "Success" && result["Message"] != "Authentication accepted" {
return errors.New("Login failed: " + result["Message"])
}

Expand Down

0 comments on commit 5134687

Please sign in to comment.