summaryrefslogtreecommitdiffstats
path: root/fuel
diff options
context:
space:
mode:
authorSzilard Cserey <szilard.cserey@ericsson.com>2015-09-20 16:19:29 +0200
committerSzilard Cserey <szilard.cserey@ericsson.com>2015-09-21 01:13:38 +0200
commit53cee12e3767a2a8e31dbefaa68a3fc2881abde2 (patch)
tree73038d3bca1933f0e76f1e87961ef77e92aa167c /fuel
parent279fb82409ad6cd18f1ab59ea3db8592d05b3095 (diff)
FIX raise Exception
Change-Id: Ia1ded0e6de426b97de6aec9c0ff5225ea63a8c91 Signed-off-by: Szilard Cserey <szilard.cserey@ericsson.com>
Diffstat (limited to 'fuel')
-rw-r--r--fuel/deploy/install_fuel_master.py9
1 files changed, 5 insertions, 4 deletions
diff --git a/fuel/deploy/install_fuel_master.py b/fuel/deploy/install_fuel_master.py
index 7ace713..b4e12d4 100644
--- a/fuel/deploy/install_fuel_master.py
+++ b/fuel/deploy/install_fuel_master.py
@@ -114,7 +114,8 @@ class InstallFuelMaster(object):
log('Found plugin %s, installing ...' % f)
r, e = s.exec_cmd('fuel plugins --install %s' % f, False)
if e and 'does not update installed package' not in r:
- raise('Installation of Fuel Plugin %s failed' % f)
+ raise Exception('Installation of Fuel Plugin %s '
+ 'failed' % f)
def wait_for_node_up(self):
WAIT_LOOP = 60
@@ -133,7 +134,7 @@ class InstallFuelMaster(object):
self.ssh.close()
if not success:
- raise('Could not SSH into Fuel VM %s' % self.fuel_ip)
+ raise Exception('Could not SSH into Fuel VM %s' % self.fuel_ip)
def wait_until_fuel_menu_up(self):
WAIT_LOOP = 60
@@ -150,7 +151,7 @@ class InstallFuelMaster(object):
else:
break
if not fuel_menu_pid:
- raise('Could not find the Fuel Menu Process ID')
+ raise Exception('Could not find the Fuel Menu Process ID')
return fuel_menu_pid
def get_fuel_menu_pid(self, printout, search):
@@ -193,7 +194,7 @@ class InstallFuelMaster(object):
time.sleep(SLEEP_TIME)
if not install_completed:
- raise('Fuel installation did not complete')
+ raise Exception('Fuel installation did not complete')
def post_install_cleanup(self):
log('Eject ISO file %s' % self.iso_file)