Skip to content

Commit

Permalink
Address review feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
vishalnayak committed Jan 9, 2019
1 parent 01e71ce commit 042f55c
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions builtin/credential/aws/path_config_identity.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,11 @@ func identityConfigEntry(ctx context.Context, s logical.Storage) (*identityConfi
return nil, err
}

switch {
case entry.IAMAlias == "":
if entry.IAMAlias == "" {
entry.IAMAlias = identityAliasIAMUniqueID
case entry.EC2Alias == "":
}

if entry.EC2Alias == "" {
entry.EC2Alias = identityAliasEC2InstanceID
}

Expand Down

0 comments on commit 042f55c

Please sign in to comment.