mirror of
https://github.com/munki/munki.git
synced 2026-04-21 20:18:20 -05:00
Supervisor should exit with the return code of the process it started, not 0 if there are no errors.
git-svn-id: http://munki.googlecode.com/svn/trunk@1142 a4e17f2e-e282-11dd-95e1-755cbddbdd66
This commit is contained in:
@@ -188,7 +188,7 @@ def main(argv):
|
||||
sp = Supervisor()
|
||||
sp.setOptions(**options)
|
||||
sp.execute(args)
|
||||
return 0
|
||||
return sp.GetReturnCode()
|
||||
except Error, e:
|
||||
logging.debug('%s %s', e.__class__.__name__, str(e))
|
||||
return 1
|
||||
|
||||
Reference in New Issue
Block a user