mirror of
https://github.com/munki/munki.git
synced 2026-04-26 06:48:57 -05:00
Restore 'catalogs' as an item included in ManagedInstallReport.plist under 'Conditions'. Addresses #1218
This commit is contained in:
@@ -114,13 +114,6 @@ def check(client_id='', localmanifestpath=None):
|
||||
installinfo['managed_installs'] = []
|
||||
installinfo['removals'] = []
|
||||
|
||||
# record info object for conditional item comparisons
|
||||
reports.report['Conditions'] = {}
|
||||
# copy everything except applications data
|
||||
for key, value in info.predicate_info_object().items():
|
||||
if key != 'applications':
|
||||
reports.report['Conditions'][key] = value
|
||||
|
||||
# remove any staged os installer info we have; we'll check and
|
||||
# recreate if still valid
|
||||
osinstaller.remove_staged_os_installer_info()
|
||||
@@ -378,6 +371,17 @@ def check(client_id='', localmanifestpath=None):
|
||||
reports.report['ItemsToInstall'] = installinfo['managed_installs']
|
||||
reports.report['ItemsToRemove'] = installinfo['removals']
|
||||
|
||||
# record info object for conditional item comparisons
|
||||
reports.report['Conditions'] = {}
|
||||
# copy everything except applications data
|
||||
for key, value in info.predicate_info_object().items():
|
||||
if key != 'applications':
|
||||
reports.report['Conditions'][key] = value
|
||||
# make sure recorded catalogs are those for the primary manifest
|
||||
# as this list can change with included manifests
|
||||
reports.report['Conditions']['catalogs'] = get_primary_manifest_catalogs(
|
||||
client_id=client_id)
|
||||
|
||||
# clean up catalogs directory
|
||||
catalogs.clean_up()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user