Skip to content
This repository has been archived by the owner on Sep 22, 2021. It is now read-only.

Commit

Permalink
fixed issue in assume role, need to look at a better unit test for th…
Browse files Browse the repository at this point in the history
…is..
  • Loading branch information
jdamick committed Jun 21, 2017
1 parent 95db0a6 commit 07c374e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion providers/aws.go
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ func createSession(httpClient *http.Client) *session.Session {
sess := session.New(config)

forceAssume := viper.GetBool("assume-role")
if len(EnvRoleArn()) == 0 && forceAssume {
if len(EnvRoleArn()) > 0 && forceAssume {
role := RoleArn()
if len(role) > 0 {
log.Infof("Assuming Role: %s", role)
Expand Down

0 comments on commit 07c374e

Please sign in to comment.