mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Show the error in case of failure.
This commit is contained in:
parent
b67b64697a
commit
097aed1e7e
1 changed files with 9 additions and 0 deletions
|
@ -39,6 +39,7 @@ ensure_in_syspath(CODE_DIR, SALT_LIBS)
|
|||
|
||||
# Import Salt libs
|
||||
import salt
|
||||
import salt._compat
|
||||
import salt.config
|
||||
import salt.master
|
||||
import salt.minion
|
||||
|
@ -561,6 +562,14 @@ class TestDaemon(object):
|
|||
syncing.remove(name)
|
||||
continue
|
||||
|
||||
if isinstance(output['ret'], salt._compat.string_types):
|
||||
# An errors has occurred
|
||||
print(
|
||||
' {RED_BOLD}*{ENDC} {0} Failed so sync modules: '
|
||||
'{1}'.format(name, output['ret'], **self.colors)
|
||||
)
|
||||
return False
|
||||
|
||||
print(
|
||||
' {LIGHT_GREEN}*{ENDC} Synced {0} modules: '
|
||||
'{1}'.format(
|
||||
|
|
Loading…
Add table
Reference in a new issue