Set strategy planner
The default planner can not create actions with right order, The node_resouce_consolidation strategy needs to use its own planner. Partially Implements: blueprint node-resource-consolidation Depends-on: I586e67f782e2965234826634ba3ff51681af4df8 Change-Id: I05b02905a3335a73b6926966de6331c632842293
This commit is contained in:
@@ -250,7 +250,8 @@ class NodeResourceConsolidation(base.ServerConsolidationBaseStrategy):
|
||||
|
||||
def pre_execute(self):
|
||||
self._pre_execute()
|
||||
self.host_choice = self.input_parameters.host_choice
|
||||
self.host_choice = self.input_parameters.get('host_choice', 'auto')
|
||||
self.planner = 'node_resource_consolidation'
|
||||
|
||||
def do_execute(self, audit=None):
|
||||
"""Strategy execution phase
|
||||
|
||||
Reference in New Issue
Block a user