summaryrefslogtreecommitdiffstats
path: root/func/driver.py
diff options
context:
space:
mode:
Diffstat (limited to 'func/driver.py')
-rw-r--r--func/driver.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/func/driver.py b/func/driver.py
index 7ccbb0c0..d20c0e9f 100644
--- a/func/driver.py
+++ b/func/driver.py
@@ -18,6 +18,7 @@ class Driver:
def __init__(self):
print "Class driver initialized\n"
+ print os.environ['PWD']
self.dic_json = defaultdict()
def drive_bench(self, benchmark, roles, benchmark_detail= None, pip_dict = None):
@@ -30,6 +31,7 @@ class Driver:
self.dic_json['ip1']=''
self.dic_json['ip2']=''
self.dic_json['installer']=str(os.environ['INSTALLER_TYPE'])
+ self.dic_json['workingdir']=str(os.environ['PWD'])
for k,v in benchmark_detail:
self.dic_json[k]=v
for k, v in roles:
@@ -40,7 +42,7 @@ class Driver:
if k == '1-server':
print values, 'saving IP'
self.dic_json['ip'+str(index)]= str(values)
- if pip_dict[0][1][0]:
+ if pip_dict[0][1][0]:
self.dic_json['privateip'+str(index)] = pip_dict[0][1]
if not pip_dict[0][1][0]:
self.dic_json['privateip'+str(index)] = 'NONE'