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 May 3, 2024
1 parent f15024c commit 7d97c37
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 @@ -1372,7 +1372,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 7d97c37

Please sign in to comment.