summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZuul <zuul@review.openstack.org>2018-08-06 18:39:07 +0000
committerGerrit Code Review <review@openstack.org>2018-08-06 18:39:07 +0000
commit2c6232c9ad37079020ac72a29a54ab794cc80500 (patch)
tree4b019241e51b9f1a9cac536c352d934fde4316b7
parentee7964f83049862791f72889b15604e47083b438 (diff)
parentbb7c0399363330d6099b7be890ed89a0d5db8c33 (diff)
Merge "Another small fix for cluster creation on APIv2"
-rw-r--r--sahara/api/v2/clusters.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/sahara/api/v2/clusters.py b/sahara/api/v2/clusters.py
index de6e37a..3d63817 100644
--- a/sahara/api/v2/clusters.py
+++ b/sahara/api/v2/clusters.py
@@ -49,7 +49,7 @@ def clusters_create(data):
49 del data['plugin_version'] 49 del data['plugin_version']
50 if data.get('count', None) is not None: 50 if data.get('count', None) is not None:
51 result = api.create_multiple_clusters(data) 51 result = api.create_multiple_clusters(data)
52 for c in result: 52 for c in result['clusters']:
53 u._replace_hadoop_version_plugin_version(c['cluster']) 53 u._replace_hadoop_version_plugin_version(c['cluster'])
54 return u.render(result) 54 return u.render(result)
55 else: 55 else: