Skip to content

Commit

Permalink
Add logs to notify user when their provided acl is used
Browse files Browse the repository at this point in the history
Signed-off-by: henrick <[email protected]>
  • Loading branch information
henrick committed Nov 6, 2024
1 parent ffb92d5 commit 8b1e567
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,14 @@ def run(
# Use provided default ACL if available, otherwise create a new one
if default_acl_id:
acl_id = default_acl_id
# Don't add to acl_id since we didn't create it
logging.info(
"Using provided default ACL ID %s - this ACL will not be deleted after the scenario",
default_acl_id
)
# Don't add to acl_ids_created since we don't want to delete user-provided ACLs at cleanup
else:
acl_id = cloud_object.create_default_network_acl(vpc_id)
logging.info("Created new default ACL %s", acl_id)
acl_ids_created.append(acl_id)

new_association_id = cloud_object.replace_network_acl_association(
Expand Down

0 comments on commit 8b1e567

Please sign in to comment.