Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(iam): Handle NoSuchEntity when calling list_role_policies #2872

Merged
merged 1 commit into from
Sep 27, 2023

Conversation

jfagoagas
Copy link
Member

Description

Fix the following error: NoSuchEntityException[466]: An error occurred (NoSuchEntity) when calling the ListRolePolicies operation: The role with name cannot be found.

License

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@jfagoagas jfagoagas added the provider/aws Issues/PRs related with the AWS provider label Sep 27, 2023
@jfagoagas jfagoagas requested a review from a team September 27, 2023 06:57
@jfagoagas jfagoagas self-assigned this Sep 27, 2023
@codecov
Copy link

codecov bot commented Sep 27, 2023

Codecov Report

Merging #2872 (e1e6a53) into master (1697e6a) will decrease coverage by 0.01%.
The diff coverage is 0.00%.

@@            Coverage Diff             @@
##           master    #2872      +/-   ##
==========================================
- Coverage   86.12%   86.11%   -0.01%     
==========================================
  Files         539      539              
  Lines       17365    17369       +4     
==========================================
+ Hits        14955    14957       +2     
- Misses       2410     2412       +2     
Files Coverage Δ
prowler/providers/aws/services/iam/iam_service.py 79.36% <0.00%> (-0.78%) ⬇️

... and 1 file with indirect coverage changes

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@MrCloudSec MrCloudSec merged commit f8b4e6e into master Sep 27, 2023
@MrCloudSec MrCloudSec deleted the fix-list-roles branch September 27, 2023 07:37
jfagoagas added a commit to jit-contrib/prowler that referenced this pull request Oct 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
provider/aws Issues/PRs related with the AWS provider
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants