summaryrefslogtreecommitdiff
path: root/heat/engine/resources/openstack/senlin
diff options
context:
space:
mode:
authorDuc Truong <dtruong@blizzard.com>2019-07-10 21:46:40 +0000
committerDuc Truong <dtruong@blizzard.com>2019-07-29 16:14:28 +0000
commit6f7b3aca9bb0ca865ec6a3efb24dfc5979769edf (patch)
tree7dbd0ec366b45102a9c982d75451dc7ef34cfa75 /heat/engine/resources/openstack/senlin
parentd580565abff2997002eff856535bdfd2ddb44da7 (diff)
downloadheat-6f7b3aca9bb0ca865ec6a3efb24dfc5979769edf.tar.gz
Fix senlin cluster create
Calling openstacksdk's create_cluster no longer returns the action id in the location. Instead the caller has to use the cluster id to query the cluster status and determine the execution status based on that. Change-Id: Ia09915dc0529aaec21d0826f28e29d435354e5e0 Task: 35786
Diffstat (limited to 'heat/engine/resources/openstack/senlin')
-rw-r--r--heat/engine/resources/openstack/senlin/cluster.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/heat/engine/resources/openstack/senlin/cluster.py b/heat/engine/resources/openstack/senlin/cluster.py
index 371e12a99..b8e187abe 100644
--- a/heat/engine/resources/openstack/senlin/cluster.py
+++ b/heat/engine/resources/openstack/senlin/cluster.py
@@ -218,12 +218,11 @@ class Cluster(res_base.BaseSenlinResource):
}
cluster = self.client().create_cluster(**params)
- action_id = cluster.location.split('/')[-1]
self.resource_id_set(cluster.id)
# for cluster creation, we just to check the action status
# the action is executed above
action = {
- 'action_id': action_id,
+ 'cluster_id': cluster.id,
'done': False,
}
actions.append(action)