Make sure exception raises is of type Exception() Fixes #23312

This commit is contained in:
Nitin Madhok 2015-05-04 03:39:22 -04:00
parent 49f5789934
commit ace1d58947

View File

@ -605,7 +605,7 @@ def _wait_for_task(task, vm_name, task_type, sleep_seconds=1, log_level='debug')
else: else:
log.debug(message) log.debug(message)
else: else:
raise task.info.error raise Exception(task.info.error)
def _wait_for_host(host_ref, task_type, sleep_seconds=5, log_level='debug'): def _wait_for_host(host_ref, task_type, sleep_seconds=5, log_level='debug'):