Changed misleading function name in Heat engine
Change-Id: I9f439c14810f5bb81cefe1a8bd08feec06426fdd Closes-Bug: #1459774
This commit is contained in:
parent
4928fd9c74
commit
c0f8ef3090
@ -189,7 +189,7 @@ class HeatEngine(e.Engine):
|
||||
disable_rollback=True):
|
||||
stack = ht.ClusterStack(cluster)
|
||||
|
||||
self._configure_template(stack, cluster, target_count)
|
||||
self._update_instance_count(stack, cluster, target_count)
|
||||
stack.instantiate(update_existing=update_stack,
|
||||
disable_rollback=disable_rollback)
|
||||
heat.wait_stack_completion(stack.heat_stack)
|
||||
@ -220,11 +220,11 @@ class HeatEngine(e.Engine):
|
||||
|
||||
return inst_ids
|
||||
|
||||
def _configure_template(self, tmpl, cluster, target_count):
|
||||
def _update_instance_count(self, stack, cluster, target_count):
|
||||
ctx = context.ctx()
|
||||
for node_group in cluster.node_groups:
|
||||
count = target_count[node_group.id]
|
||||
tmpl.add_node_group_extra(node_group.id, count,
|
||||
stack.add_node_group_extra(node_group.id, count,
|
||||
self._generate_user_data_script)
|
||||
|
||||
# if number of instances decreases, we need to drop
|
||||
|
Loading…
Reference in New Issue
Block a user