Show the error in case of failure.

This commit is contained in:
Pedro Algarvio 2013-11-10 19:57:41 +00:00
parent b67b64697a
commit 097aed1e7e

View file

@ -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(