aboutsummaryrefslogtreecommitdiffstats
path: root/func
diff options
context:
space:
mode:
authorMofassirArif <Mofassir_Arif@dellteam.com>2016-01-18 03:21:00 -0800
committerNauman Ahad <nauman.ahad@xflowresearch.com>2016-02-01 22:24:35 +0000
commitfeaa1213a8c742b74ae3e8b17be509b553bc1256 (patch)
tree41b680a29e8b735f660c9e5c18e2b1c5ebcc4ad3 /func
parenta27f0433ee8e73ffff95dc59fb576b1ccc439958 (diff)
bug fix: make installer specific changes for baremetal. cater
for fuel Change-Id: Ie8c233873041238e3fc1aaaa653653552c7c7428 Signed-off-by: MofassirArif <Mofassir_Arif@dellteam.com> (cherry picked from commit 254ebb0efff73faa2285cf9f1ce70298a9787cb0)
Diffstat (limited to 'func')
-rw-r--r--func/driver.py3
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)