Adding EX_AGGREGATE exit code and using it

This commit is contained in:
Nathan Grennan 2015-05-04 15:44:27 -07:00
parent 16ac1d87fe
commit 041bdbff18
2 changed files with 5 additions and 2 deletions

View File

@ -559,8 +559,8 @@ class SSH(object):
sret,
outputter,
self.opts)
sys.exit(final_exit)
if final_exit:
sys.exit(salt.defaults.exitcodes.EX_AGGREGATE)
class Single(object):

View File

@ -15,6 +15,9 @@ EX_THIN_DEPLOY = 11
EX_THIN_CHECKSUM = 12
EX_MOD_DEPLOY = 13
# One of a collection failed
EX_AGGREGATE = 20
# The os.EX_* exit codes are Unix only so in the interest of cross-platform
# compatiblility define them explicitly here.
#