aboutsummaryrefslogtreecommitdiffstats
path: root/func
diff options
context:
space:
mode:
authorzhifeng.jiang <jiang.zhifeng@zte.com.cn>2016-09-25 11:18:53 +0800
committerzhifeng.jiang <jiang.zhifeng@zte.com.cn>2016-09-25 11:18:53 +0800
commit1a8a2f7da01a8ead5f6c0e697f8737a895ccd451 (patch)
tree8b9896c6fbb5b9787690385a57d6d88ed95acc88 /func
parentc4292f93f53f88a48cc3693b464dcdff6a9a0850 (diff)
Bugfix: Get private ip wrong in iperf vm test.
Change-Id: I92c937eaadf5adfa4a8eced5b95af26612d7c523 Signed-off-by: zhifeng.jiang <jiang.zhifeng@zte.com.cn>
Diffstat (limited to 'func')
-rw-r--r--func/driver.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/func/driver.py b/func/driver.py
index 88d673fa..bcda0ce1 100644
--- a/func/driver.py
+++ b/func/driver.py
@@ -49,7 +49,7 @@ class Driver:
def get_special_var_json(self, role, roles, benchmark_detail, pip_dict):
special_json = {}
index = roles.index(role) + 1
- private_ip = pip_dict[0][1][0] if pip_dict[0][1][0] else 'NONE'
+ private_ip = pip_dict[0][1] if pip_dict[0][1][0] else 'NONE'
map(lambda x: special_json.update({'ip' + str(index): x}), role[1])\
if benchmark_detail and (role[0] == '1-server') else None
map(lambda x: special_json.update({'privateip' + str(index): private_ip}), role[1])\