From c5595a26a4abf00c06db1c7b5635a1f78456e095 Mon Sep 17 00:00:00 2001 From: Jon Crain Date: Fri, 25 Aug 2023 17:40:31 -0400 Subject: [PATCH] Update sal-postflight --- .../usr/local/munki/postflight.d/sal-postflight | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/payload/usr/local/munki/postflight.d/sal-postflight b/payload/usr/local/munki/postflight.d/sal-postflight index 804d223..7b04a20 100644 --- a/payload/usr/local/munki/postflight.d/sal-postflight +++ b/payload/usr/local/munki/postflight.d/sal-postflight @@ -31,11 +31,19 @@ def check_for_errors(report): "\t(-1009, 'The Internet connection appears to be offline.')"], ] - if munkicommon.pref('InstallAppleSoftwareUpdates'): - if warnings in target_warnings and errors == target_errors: + if munkicommon.pref("InstallAppleSoftwareUpdates"): + if warnings in target_warnings and any( + error.startswith(target_error) + for target_error in target_errors + for error in errors + ): return True else: - if errors == target_errors: + if any( + error.startswith(target_error) + for target_error in target_errors + for error in errors + ): return True return False