Skip to content

Commit 965fd08

Browse files
committed
fix(producer): Deletion log line was copied from creation and left unchanged.
1 parent 4d443dd commit 965fd08

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ct_configrecorder_override_producer.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,8 @@ def lambda_handler(event, context):
8383
cfnresponse.send(event, context, cfnresponse.SUCCESS, response, "CustomResourcePhysicalID")
8484
elif ('LogicalResourceId' in event) and (event['RequestType'] == 'Delete'):
8585
logging.info('DELETE DELETE')
86-
logging.info(
87-
'overriding config recorder for ALL accounts because of first run after function deployment from CloudFormation')
86+
logging.warn(
87+
'Initiating config recorder cleanup for ALL accounts due to CloudFormation stack deletion')
8888
override_config_recorder(excluded_accounts, sqs_url, '', 'Delete')
8989
response = {}
9090
## Send signal back to CloudFormation after the final run

0 commit comments

Comments
 (0)