Browse Source

API v2: fix "local variable 'c' referenced before assignment"

The subject explain it all.

Change-Id: If35d56e010d203c96769e7123414a6486d9b789f
Luigi Toscano 3 months ago
parent
commit
4bfd800ff4
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      sahara/api/v2/clusters.py

+ 1
- 1
sahara/api/v2/clusters.py View File

@@ -57,7 +57,7 @@ def clusters_create(data):
57 57
     else:
58 58
         result = api.create_cluster(data).to_wrapped_dict()
59 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 61
         return u.render(result)
62 62
 
63 63
 

Loading…
Cancel
Save