Save pending update times before writing OldestUpdateDays prefs so the day count is actually accurate

This commit is contained in:
Greg Neagle
2021-10-19 10:07:03 -07:00
parent d90f9e2fc6
commit 65bb1d19fb
+1 -1
View File
@@ -331,9 +331,9 @@ def doFinishingTasks(runtype=None):
reports.savereport()
# store the current pending update count and other data for munki-notifier
installinfo.save_pending_update_times()
update_info = installinfo.get_pending_update_info()
prefs.set_pref('PendingUpdateCount', update_info['PendingUpdateCount'])
installinfo.save_pending_update_times()
prefs.set_pref('OldestUpdateDays', update_info['OldestUpdateDays'])
prefs.set_pref('ForcedUpdateDueDate', update_info['ForcedUpdateDueDate'])