From 47bc23f4810051a7b6670f276ed5229fd00baa6a Mon Sep 17 00:00:00 2001 From: GuyTempleton Date: Sat, 15 Apr 2017 16:24:30 +0100 Subject: [PATCH] Move agent_connected assignation --- moto/ecs/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/moto/ecs/models.py b/moto/ecs/models.py index 359cddec6..f73cd353e 100644 --- a/moto/ecs/models.py +++ b/moto/ecs/models.py @@ -240,6 +240,7 @@ class ContainerInstance(BaseObject): def __init__(self, ec2_instance_id): self.ec2_instance_id = ec2_instance_id + self.agent_connected = True self.status = 'ACTIVE' self.registered_resources = [ {'doubleValue': 0.0, @@ -264,7 +265,6 @@ class ContainerInstance(BaseObject): 'name': 'PORTS_UDP', 'stringSetValue': [], 'type': 'STRINGSET'}] - self.agent_connected = True self.container_instance_arn = "arn:aws:ecs:us-east-1:012345678910:container-instance/{0}".format( str(uuid.uuid1())) self.pending_task_count = 0