mirror of
https://github.com/munki/munki.git
synced 2026-04-22 20:48:36 -05:00
Call recordUpdateCheckResult() when preflight script aborts the managedsoftware update run.
git-svn-id: http://munki.googlecode.com/svn/trunk@559 a4e17f2e-e282-11dd-95e1-755cbddbdd66
This commit is contained in:
@@ -382,7 +382,12 @@ def main():
|
||||
if result:
|
||||
# non-zero return code means don't run
|
||||
munkicommon.display_info("managedsoftwareupdate run aborted by"
|
||||
" preflight script")
|
||||
" preflight script: %s" % result)
|
||||
# record the check result for use by Managed Software Update.app
|
||||
# right now, we'll return the same code as if the munki server
|
||||
# was unavailable. We need to revisit this and define additional
|
||||
# update check results.
|
||||
recordUpdateCheckResult(-1)
|
||||
exit(-1)
|
||||
|
||||
# set munkicommon globals
|
||||
|
||||
Reference in New Issue
Block a user