Skip to content

Commit

Permalink
go fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
ltagliamonte-dd committed Dec 14, 2019
1 parent 21da60a commit 857d1b7
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion iam/iam.go
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ func (iam *Client) AssumeRole(roleARN, externalID string, remoteIP string, sessi
RoleSessionName: aws.String(sessionName(roleARN, remoteIP)),
}
// Only inject the externalID if one was provided with the request
if (externalID != "") {
if externalID != "" {
assumeRoleInput.SetExternalId(externalID)
}
resp, err := svc.AssumeRole(&assumeRoleInput)
Expand Down
14 changes: 7 additions & 7 deletions mappings/mapper.go
Original file line number Diff line number Diff line change
Expand Up @@ -163,13 +163,13 @@ func (r *RoleMapper) DumpDebugInfo() map[string]interface{} {
// NewRoleMapper returns a new RoleMapper for use.
func NewRoleMapper(roleKey string, externalIDKey string, defaultRole string, namespaceRestriction bool, namespaceKey string, iamInstance *iam.Client, kubeStore store, namespaceRestrictionFormat string) *RoleMapper {
return &RoleMapper{
defaultRoleARN: iamInstance.RoleARN(defaultRole),
iamRoleKey: roleKey,
iamExternalIDKey: externalIDKey,
namespaceKey: namespaceKey,
namespaceRestriction: namespaceRestriction,
iam: iamInstance,
store: kubeStore,
defaultRoleARN: iamInstance.RoleARN(defaultRole),
iamRoleKey: roleKey,
iamExternalIDKey: externalIDKey,
namespaceKey: namespaceKey,
namespaceRestriction: namespaceRestriction,
iam: iamInstance,
store: kubeStore,
namespaceRestrictionFormat: namespaceRestrictionFormat,
}
}

0 comments on commit 857d1b7

Please sign in to comment.