fix(iam): change some logger.info values (#7537)

Co-authored-by: Pedro Martín <pedromarting3@gmail.com>
Co-authored-by: Sergio Garcia <hello@mistercloudsec.com>
This commit is contained in:
Prowler Bot
2025-04-15 21:49:12 +02:00
committed by GitHub
parent 36df42cf64
commit 7c614ef160
2 changed files with 4 additions and 3 deletions
+1
View File
@@ -13,6 +13,7 @@ All notable changes to the **Prowler SDK** are documented in this file.
- Fix package name location in pyproject.toml while replicating for prowler-cloud [(#7531)](https://github.com/prowler-cloud/prowler/pull/7531).
- Remove cache in PyPI release action [(#7532)](https://github.com/prowler-cloud/prowler/pull/7532).
- Add the correct values for logger.info inside iam service [(#7526)](https://github.com/prowler-cloud/prowler/pull/7526).
---
@@ -286,7 +286,7 @@ class IAM(AWSService):
return stored_password_policy
def _get_users(self):
logger.info("IAM - List Users...")
logger.info("IAM - Get Users...")
try:
get_users_paginator = self.client.get_paginator("list_users")
users = []
@@ -469,7 +469,7 @@ class IAM(AWSService):
)
def _list_attached_role_policies(self):
logger.info("IAM - List Attached User Policies...")
logger.info("IAM - List Attached Role Policies...")
try:
if self.roles:
for role in self.roles:
@@ -712,7 +712,7 @@ class IAM(AWSService):
return roles
def _list_entities_for_policy(self, policy_arn):
logger.info("IAM - List Entities Role For Policy...")
logger.info("IAM - List Entities For Policy...")
try:
entities = {
"Users": [],