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 17, 2024
1 parent 5ff16f7 commit ed4a2f8
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 ed4a2f8

Please sign in to comment.