diff options
author | qiujuan <juan_qiu@tongji.edu.cn> | 2017-05-25 13:18:28 +0800 |
---|---|---|
committer | Jing Lu <lvjing5@huawei.com> | 2017-07-25 06:10:56 +0000 |
commit | a0c9e3066046fc369870dbffe67a0613d661cf80 (patch) | |
tree | c3712ff54101f921a5abec530ac6838b1e3f5219 /yardstick/benchmark/scenarios/availability/director.py | |
parent | d29df23ae5057fe0ccded6f8d8f3e36a084a78b3 (diff) |
Add intermediate variable for HA test
JIRA: YARDSTICK-397
Change-Id: I3489893caa5b8194b63cb844325ec0b2c554aecc
Signed-off-by: qiujuan <juan_qiu@tongji.edu.cn>
Diffstat (limited to 'yardstick/benchmark/scenarios/availability/director.py')
-rw-r--r-- | yardstick/benchmark/scenarios/availability/director.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/yardstick/benchmark/scenarios/availability/director.py b/yardstick/benchmark/scenarios/availability/director.py index e0d05ebf5..c9187c34d 100644 --- a/yardstick/benchmark/scenarios/availability/director.py +++ b/yardstick/benchmark/scenarios/availability/director.py @@ -65,7 +65,9 @@ class Director(object): self.resultCheckerMgr = baseresultchecker.ResultCheckerMgr() self.resultCheckerMgr.init_ResultChecker(result_check_cfgs, nodes) - def createActionPlayer(self, type, key): + def createActionPlayer(self, type, key, intermediate_variables=None): + if intermediate_variables is None: + intermediate_variables = {} LOG.debug( "the type of current action is %s, the key is %s", type, key) if type == ActionType.ATTACKER: @@ -76,7 +78,8 @@ class Director(object): return actionplayers.ResultCheckerPlayer( self.resultCheckerMgr[key]) if type == ActionType.OPERATION: - return actionplayers.OperationPlayer(self.operationMgr[key]) + return actionplayers.OperationPlayer(self.operationMgr[key], + intermediate_variables) LOG.debug("something run when creatactionplayer") def createActionRollbacker(self, type, key): |