From 454ca6fe46f9cc81b55e26b163b118ed256de4c4 Mon Sep 17 00:00:00 2001 From: Fabian Fuelling Date: Tue, 23 Mar 2021 13:15:33 +0100 Subject: [PATCH 1/2] Receive and store new parameter "deregisteredAt", but do not include it when registering a new revision (not supported) --- ecs_deploy/ecs.py | 3 ++- tests/test_ecs.py | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/ecs_deploy/ecs.py b/ecs_deploy/ecs.py index 29f8086..2b3f43b 100644 --- a/ecs_deploy/ecs.py +++ b/ecs_deploy/ecs.py @@ -221,7 +221,7 @@ class EcsTaskDefinition(object): def __init__(self, containerDefinitions, volumes, family, revision, status, taskDefinitionArn, requiresAttributes=None, taskRoleArn=None, executionRoleArn=None, compatibilities=None, - tags=None, registeredAt=None, registeredBy=None, **kwargs): + tags=None, registeredAt=None, deregisteredAt=None, registeredBy=None, **kwargs): self.containers = containerDefinitions self.volumes = volumes @@ -241,6 +241,7 @@ def __init__(self, containerDefinitions, volumes, family, revision, # task definition. Just storing them for now. self.compatibilities = compatibilities self.registered_at = registeredAt + self.deregistered_at = deregisteredAt self.registered_by = registeredBy @property diff --git a/tests/test_ecs.py b/tests/test_ecs.py index 617780e..c4ecd04 100644 --- a/tests/test_ecs.py +++ b/tests/test_ecs.py @@ -70,6 +70,7 @@ u'placementConstraints': {}, u'registeredBy': 'foobar', u'registeredAt': '2021-01-20T14:33:44Z', + u'deregisteredAt': '2021-01-20T14:33:44Z', u'unknownProperty': u'lorem-ipsum', u'compatibilities': [u'EC2'], } From d271c6009c736d92288e8513ed5a1d019b4eed0c Mon Sep 17 00:00:00 2001 From: Fabian Fuelling Date: Tue, 23 Mar 2021 13:15:52 +0100 Subject: [PATCH 2/2] Bump version to 1.11.3 --- ecs_deploy/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ecs_deploy/__init__.py b/ecs_deploy/__init__.py index ad9237e..99b1e99 100644 --- a/ecs_deploy/__init__.py +++ b/ecs_deploy/__init__.py @@ -1 +1 @@ -VERSION = '1.11.2' +VERSION = '1.11.3'