Skip to content

Commit

Permalink
linting fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
ievgeniia ieromenko committed Jan 17, 2024
1 parent c3d8e63 commit e47e815
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -104,12 +104,12 @@ def set_config_in_org(
LOGGER.info(f"Config recorder is up to update in {account_id} in {region} region. Configurations: {configuration_recorder}")
else:
LOGGER.info(f"Updating config recorder in {account_id} account in {region} region")
response = config_client.put_configuration_recorder(ConfigurationRecorder=configuration_recorder)
config_client.put_configuration_recorder(ConfigurationRecorder=configuration_recorder)
LOGGER.info(f"Config recorder updated for {account_id} account in {region} region. Configurations: {configuration_recorder}")

if not len(config_client.describe_configuration_recorders()["ConfigurationRecorders"]):
LOGGER.info(f"Creating config recorder in {account_id} account in {region} region")
response = config_client.put_configuration_recorder(ConfigurationRecorder=configuration_recorder)
config_client.put_configuration_recorder(ConfigurationRecorder=configuration_recorder)
LOGGER.info(f"Config recorder started for {account_id} account in {region} region. Configurations: {configuration_recorder}")

if config_client.describe_configuration_recorder_status()["ConfigurationRecordersStatus"][0]["recording"]:
Expand Down

0 comments on commit e47e815

Please sign in to comment.