mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 09:23:56 +00:00
Make sure exception raises is of type Exception() Fixes #23312
This commit is contained in:
parent
49f5789934
commit
ace1d58947
@ -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'):
|
||||
|
Loading…
Reference in New Issue
Block a user