Merge pull request #3147 from bblommers/enhancement/3139

ECS - UpdateService - Allow service ARN to be passed in
This commit is contained in:
Steve Pulec 2020-07-26 15:31:12 -05:00 committed by GitHub
commit 41427a78b6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 11 additions and 1 deletions

View file

@ -1028,9 +1028,10 @@ class EC2ContainerServiceBackend(BaseBackend):
return result
def update_service(
self, cluster_str, service_name, task_definition_str, desired_count
self, cluster_str, service_str, task_definition_str, desired_count
):
cluster_name = cluster_str.split("/")[-1]
service_name = service_str.split("/")[-1]
cluster_service_pair = "{0}:{1}".format(cluster_name, service_name)
if cluster_service_pair in self.services:
if task_definition_str is not None: