Skip to content

Commit

Permalink
Fix service names in BackendDict initialisations (#68)
Browse files Browse the repository at this point in the history
Co-authored-by: Viren Nadkarni <[email protected]>
  • Loading branch information
giograno and viren-nadkarni committed Sep 25, 2023
1 parent a4f4be8 commit 68b6b47
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 5 deletions.
4 changes: 3 additions & 1 deletion moto/applicationautoscaling/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -530,4 +530,6 @@ def update(
self.end_time = end_time


applicationautoscaling_backends = BackendDict(ApplicationAutoscalingBackend, "ec2")
applicationautoscaling_backends = BackendDict(
ApplicationAutoscalingBackend, "application-autoscaling"
)
2 changes: 1 addition & 1 deletion moto/elb/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -657,4 +657,4 @@ def detach_load_balancer_from_subnets(


# Use the same regions as EC2
elb_backends = BackendDict(ELBBackend, "ec2")
elb_backends = BackendDict(ELBBackend, "elb")
2 changes: 1 addition & 1 deletion moto/elbv2/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -1914,4 +1914,4 @@ def _get_resource_by_arn(self, arn: str) -> Any:
return resource


elbv2_backends = BackendDict(ELBv2Backend, "ec2")
elbv2_backends = BackendDict(ELBv2Backend, "elbv2")
2 changes: 1 addition & 1 deletion moto/opsworks/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -627,4 +627,4 @@ def start_instance(self, instance_id: str) -> None:
self.instances[instance_id].start()


opsworks_backends = BackendDict(OpsWorksBackend, "ec2")
opsworks_backends = BackendDict(OpsWorksBackend, "opsworks")
2 changes: 1 addition & 1 deletion moto/signer/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -197,4 +197,4 @@ def list_signing_platforms(self) -> List[Dict[str, Any]]:

# Using the lambda-regions
# boto3.Session().get_available_regions("signer") still returns an empty list
signer_backends = BackendDict(SignerBackend, "lambda")
signer_backends = BackendDict(SignerBackend, "signer")

0 comments on commit 68b6b47

Please sign in to comment.