when create_cluster without name it should create a cluster with name default. Reference documentation http://docs.aws.amazon.com/cli/latest/reference/ecs/create-cluster.html
This commit is contained in:
parent
f89721328a
commit
e7d469f21d
@ -23,6 +23,8 @@ class EC2ContainerServiceResponse(BaseResponse):
|
||||
|
||||
def create_cluster(self):
|
||||
cluster_name = self._get_param('clusterName')
|
||||
if cluster_name is None:
|
||||
cluster_name = 'default'
|
||||
cluster = self.ecs_backend.create_cluster(cluster_name)
|
||||
return json.dumps({
|
||||
'cluster': cluster.response_object
|
||||
|
Loading…
Reference in New Issue
Block a user