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:
Greg Neagle
2010-06-22 17:59:30 +00:00
parent 819335c316
commit 7f8261ea99
+6 -1
View File
@@ -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