Skip to content

Commit

Permalink
ELBv2: Use random listener IDs (#73)
Browse files Browse the repository at this point in the history
  • Loading branch information
simonrw authored and viren-nadkarni committed Dec 12, 2023
1 parent 82f3902 commit ee18937
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion moto/elbv2/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -1377,7 +1377,7 @@ def create_listener(

arn = (
load_balancer_arn.replace(":loadbalancer/", ":listener/")
+ f"/{port}{id(self)}"
+ f"/{mock_random.get_random_hex(16)}"
)
listener = FakeListener(
load_balancer_arn,
Expand Down

0 comments on commit ee18937

Please sign in to comment.