Skip to content

Commit

Permalink
Add resource IDs to ECS Cluster and Service models
Browse files Browse the repository at this point in the history
  • Loading branch information
hltbra committed Jan 19, 2017
1 parent 51129f6 commit ddcfd44
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions moto/ecs/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,10 @@ def __init__(self, cluster_name):
self.running_tasks_count = 0
self.status = 'ACTIVE'

@property
def physical_resource_id(self):
return self.name

@property
def response_object(self):
response_object = self.gen_response_object()
Expand Down Expand Up @@ -154,6 +158,10 @@ def __init__(self, cluster, service_name, task_definition, desired_count):
self.load_balancers = []
self.pending_count = 0

@property
def physical_resource_id(self):
return self.arn

@property
def response_object(self):
response_object = self.gen_response_object()
Expand Down

0 comments on commit ddcfd44

Please sign in to comment.