summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuigi Toscano <ltoscano@redhat.com>2019-01-09 20:17:13 +0100
committerLuigi Toscano <ltoscano@redhat.com>2019-01-09 20:17:13 +0100
commit4bfd800ff4aa0af425a108812faa542b95a70d84 (patch)
treefd64a4132ef12384ae3e8a44f56f46c6ecf712e2
parent359b89de3ff105c78aec189650d2feabfbb07ae8 (diff)
API v2: fix "local variable 'c' referenced before assignment"
The subject explain it all. Change-Id: If35d56e010d203c96769e7123414a6486d9b789f
Notes
Notes (review): Code-Review+2: Telles Mota Vidal Nóbrega <tenobreg@redhat.com> Code-Review+2: Jeremy Freudberg <jeremyfreudberg@gmail.com> Workflow+1: Jeremy Freudberg <jeremyfreudberg@gmail.com> Verified+2: Zuul Submitted-by: Zuul Submitted-at: Wed, 09 Jan 2019 22:47:42 +0000 Reviewed-on: https://review.openstack.org/629644 Project: openstack/sahara Branch: refs/heads/master
-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 c44b4bf..9264f5b 100644
--- a/sahara/api/v2/clusters.py
+++ b/sahara/api/v2/clusters.py
@@ -57,7 +57,7 @@ def clusters_create(data):
57 else: 57 else:
58 result = api.create_cluster(data).to_wrapped_dict() 58 result = api.create_cluster(data).to_wrapped_dict()
59 u._replace_hadoop_version_plugin_version(result['cluster']) 59 u._replace_hadoop_version_plugin_version(result['cluster'])
60 u._replace_tenant_id_project_id(c['cluster']) 60 u._replace_tenant_id_project_id(result['cluster'])
61 return u.render(result) 61 return u.render(result)
62 62
63 63