From 11d3a489e4b718717fe057c55f6b58baaa6df4d1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?I=C3=B1aki=20Abete?= Date: Thu, 23 Feb 2017 16:31:27 -0300 Subject: [PATCH] Fix #90 keep "placementConstraints" from old task definition --- ecs-deploy | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ecs-deploy b/ecs-deploy index b3a7021..cf83953 100755 --- a/ecs-deploy +++ b/ecs-deploy @@ -313,7 +313,7 @@ NEW_DEF_JQ_FILTER="family: .family, volumes: .volumes, containerDefinitions: .co # Some options in task definition should only be included in new definition if present in # current definition. If found in current definition, append to JQ filter. -CONDITIONAL_OPTIONS=(networkMode taskRoleArn) +CONDITIONAL_OPTIONS=(networkMode taskRoleArn placementConstraints) for i in "${CONDITIONAL_OPTIONS[@]}"; do re=".*${i}.*" if [[ "$DEF" =~ $re ]]; then