From bb7c0399363330d6099b7be890ed89a0d5db8c33 Mon Sep 17 00:00:00 2001 From: Telles Nobrega Date: Fri, 3 Aug 2018 14:54:07 -0300 Subject: [PATCH] Another small fix for cluster creation on APIv2 Small fix that was blocking creation of multiple clusters using api v2. Change-Id: I6c1db62a4bee3d1b064333b7b2d8b8e2d6ad50f1 --- sahara/api/v2/clusters.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sahara/api/v2/clusters.py b/sahara/api/v2/clusters.py index de6e37a8ee..3d6381747f 100644 --- a/sahara/api/v2/clusters.py +++ b/sahara/api/v2/clusters.py @@ -49,7 +49,7 @@ def clusters_create(data): del data['plugin_version'] if data.get('count', None) is not None: result = api.create_multiple_clusters(data) - for c in result: + for c in result['clusters']: u._replace_hadoop_version_plugin_version(c['cluster']) return u.render(result) else: