From ace1d58947c3c925545c5ab7147e03ce56bab1ac Mon Sep 17 00:00:00 2001 From: Nitin Madhok Date: Mon, 4 May 2015 03:39:22 -0400 Subject: [PATCH] Make sure exception raises is of type Exception() Fixes #23312 --- salt/cloud/clouds/vmware.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/salt/cloud/clouds/vmware.py b/salt/cloud/clouds/vmware.py index 3677e891fa..2943117e69 100644 --- a/salt/cloud/clouds/vmware.py +++ b/salt/cloud/clouds/vmware.py @@ -605,7 +605,7 @@ def _wait_for_task(task, vm_name, task_type, sleep_seconds=1, log_level='debug') else: log.debug(message) else: - raise task.info.error + raise Exception(task.info.error) def _wait_for_host(host_ref, task_type, sleep_seconds=5, log_level='debug'):