add audit parameter to do_execute

The new bp need to get audit type from audit,
so we need to add an audit parameter to do_execute

Partially Implements: blueprint node-resource-consolidation

Change-Id: Ia979781b32202c1821aa1cb91d24253fe6d7bd2d
This commit is contained in:
licanwei
2019-08-22 23:27:14 -07:00
parent 1bd580b7a8
commit b4a02a6d31
16 changed files with 23 additions and 18 deletions

View File

@@ -413,7 +413,7 @@ class BasicConsolidation(base.ServerConsolidationBaseStrategy):
self.aggregation_method['compute_node'] = \
self.aggregation_method['node']
def do_execute(self):
def do_execute(self, audit=None):
unsuccessful_migration = 0
scores = self.compute_score_of_nodes()