Skip to content

Commit

Permalink
Bugfix on AWS integration: null dereference on AWS role object due to…
Browse files Browse the repository at this point in the history
… missing error handling (#468)
  • Loading branch information
amitlicht authored Aug 5, 2024
1 parent b72512e commit 077c212
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/shared/awsagent/roles.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ func (a *Agent) GetOtterizeRole(ctx context.Context, namespaceName, accountName
return false, nil, errors.Wrap(err)
}
}

return false, nil, errors.Wrap(err)
}

return true, role.Role, nil
Expand Down

0 comments on commit 077c212

Please sign in to comment.