Skip to content

Commit f45e72d

Browse files
author
henrick
committed
Add logs to notify user when their provided acl is used
1 parent ffb92d5 commit f45e72d

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

krkn/scenario_plugins/zone_outage/zone_outage_scenario_plugin.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,9 +64,14 @@ def run(
6464
# Use provided default ACL if available, otherwise create a new one
6565
if default_acl_id:
6666
acl_id = default_acl_id
67-
# Don't add to acl_id since we didn't create it
67+
logging.info(
68+
"Using provided default ACL ID %s - this ACL will not be deleted after the scenario",
69+
default_acl_id
70+
)
71+
# Don't add to acl_ids_created since we don't want to delete user-provided ACLs at cleanup
6872
else:
6973
acl_id = cloud_object.create_default_network_acl(vpc_id)
74+
logging.info("Created new default ACL %s", acl_id)
7075
acl_ids_created.append(acl_id)
7176

7277
new_association_id = cloud_object.replace_network_acl_association(

0 commit comments

Comments
 (0)