diff --git a/CHANGELOG.md b/CHANGELOG.md index cab3c57..570ede0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,6 +10,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Add support for Django 3.2, 4.2, 5.0 [#33](https://github.com/azavea/django-ecsmanage/pull/33) ### Changed +- Support default network modes [#33](https://github.com/azavea/django-ecsmanage/pull/33) - Upgrade CI to use newer GitHub Actions for `checkout` and `setup-python` [#33](https://github.com/azavea/django-ecsmanage/pull/33) ### Removed diff --git a/ecsmanage/management/commands/ecsmanage.py b/ecsmanage/management/commands/ecsmanage.py index 6db7307..2e1aa62 100644 --- a/ecsmanage/management/commands/ecsmanage.py +++ b/ecsmanage/management/commands/ecsmanage.py @@ -185,7 +185,7 @@ def run_task(self, config, task_def_arn, security_group_id, subnet_id, cmd): # Only the awsvpc network mode supports the networkConfiguration # input value. - if task_def["networkMode"] == "awsvpc": + if task_def.get("networkMode") == "awsvpc": kwargs["networkConfiguration"] = { "awsvpcConfiguration": { "subnets": [subnet_id],