diff options
Diffstat (limited to 'func')
-rw-r--r-- | func/driver.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/func/driver.py b/func/driver.py index 0dc0a6e1..7ccbb0c0 100644 --- a/func/driver.py +++ b/func/driver.py @@ -29,7 +29,7 @@ class Driver: self.dic_json['Dest_dir'] = str(result_dir) self.dic_json['ip1']='' self.dic_json['ip2']='' - + self.dic_json['installer']=str(os.environ['INSTALLER_TYPE']) for k,v in benchmark_detail: self.dic_json[k]=v for k, v in roles: @@ -46,5 +46,6 @@ class Driver: self.dic_json['privateip'+str(index)] = 'NONE' index= index+1 dic_json = json.dumps(dict(self.dic_json.items())) + print dic_json run_play = 'ansible-playbook -s ./benchmarks/playbooks/{0} --private-key=./data/QtipKey -i ./data/hosts --extra-vars \'{1}\' -v '.format(benchmark_name, dic_json) status = os.system(run_play) |