From 7c614ef160890e8a6e561d16dac6023c7f0625ef Mon Sep 17 00:00:00 2001 From: Prowler Bot Date: Tue, 15 Apr 2025 21:49:12 +0200 Subject: [PATCH] fix(iam): change some logger.info values (#7537) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Pedro Martín Co-authored-by: Sergio Garcia --- prowler/CHANGELOG.md | 1 + prowler/providers/aws/services/iam/iam_service.py | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/prowler/CHANGELOG.md b/prowler/CHANGELOG.md index 50f99ac5db..e0029ac658 100644 --- a/prowler/CHANGELOG.md +++ b/prowler/CHANGELOG.md @@ -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). --- diff --git a/prowler/providers/aws/services/iam/iam_service.py b/prowler/providers/aws/services/iam/iam_service.py index dc3ddd7bc8..2601377cfe 100644 --- a/prowler/providers/aws/services/iam/iam_service.py +++ b/prowler/providers/aws/services/iam/iam_service.py @@ -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": [],