Repository: fabfuel/ecs-deploy

Issue:
__init__() takes at least 8 arguments (7 given)
Everytime I do a deploy I get the following response:
`__init__() takes at least 8 arguments (7 given)`

command ran is: `ecs deploy test-cluster test-service` . Though I've tried multiple combinations of different options flags, but it always returns the error above.

Any insight would be great, Thanks.


Discussion:

Patch:
diff --git a/ecs_deploy/__init__.py b/ecs_deploy/__init__.py
index e5909ef..9aab03e 100644
--- a/ecs_deploy/__init__.py
+++ b/ecs_deploy/__init__.py
@@ -1,1 +1,1 @@
-VERSION = '1.4.1'
+VERSION = '1.4.2'
diff --git a/ecs_deploy/ecs.py b/ecs_deploy/ecs.py
index 18e0e6e..390925b 100644
--- a/ecs_deploy/ecs.py
+++ b/ecs_deploy/ecs.py
@@ -140,7 +140,7 @@ class EcsService(dict):
 
 class EcsTaskDefinition(object):
     def __init__(self, containerDefinitions, volumes, family, revision,
-                 status, taskDefinitionArn, requiresAttributes,
+                 status, taskDefinitionArn, requiresAttributes=None,
                  taskRoleArn=None, **kwargs):
         self.containers = containerDefinitions
         self.volumes = volumes
@@ -148,7 +148,7 @@ class EcsTaskDefinition(object):
         self.revision = revision
         self.status = status
         self.arn = taskDefinitionArn
-        self.requires_attributes = requiresAttributes
+        self.requires_attributes = requiresAttributes or {}
         self.role_arn = taskRoleArn or u''
         self.additional_properties = kwargs
         self._diff = []


Test patch:
diff --git a/tests/test_ecs.py b/tests/test_ecs.py
index b8466b8..b0a8eee 100644
--- a/tests/test_ecs.py
+++ b/tests/test_ecs.py
@@ -61,7 +61,6 @@ PAYLOAD_TASK_DEFINITION_2 = {
     u'volumes': deepcopy(TASK_DEFINITION_VOLUMES_2),
     u'containerDefinitions': deepcopy(TASK_DEFINITION_CONTAINERS_2),
     u'status': u'active',
-    u'requiresAttributes': {},
     u'unknownProperty': u'lorem-ipsum',
 }