mirror of
https://github.com/munki/munki.git
synced 2026-01-26 08:59:17 -06:00
Write all available conditions (admin-provided and built-in) to a 'Conditions' dict in 'ManagedInstallReport.plist'
Previously, admin-provided conditions were written to the 'ConditionalItems' dict. Some built-in information was also being written to the 'MachineInfo' dict, however this is not fully representative of all built-in conditions that are collected. Since INFO_OBJECT is used as the basis for predicate comparison, its entirety will be written to the 'Conditions' dict in 'ManagedInstallReport.plist', replacing 'ConditionalItems'. The 'MachineInfo' dict will remain untouched as it is used for reporting mechanisms.
This commit is contained in:
@@ -2340,7 +2340,6 @@ def check(client_id='', localmanifestpath=None):
|
||||
global CONDITIONS
|
||||
munkicommon.getConditions()
|
||||
CONDITIONS = munkicommon.getConditions()
|
||||
munkicommon.report['ConditionalItems'] = CONDITIONS
|
||||
|
||||
ManagedInstallDir = munkicommon.pref('ManagedInstallDir')
|
||||
if munkicommon.munkistatusoutput:
|
||||
@@ -2369,6 +2368,7 @@ def check(client_id='', localmanifestpath=None):
|
||||
|
||||
# set up INFO_OBJECT for conditional item comparisons
|
||||
makePredicateInfoObject()
|
||||
munkicommon.report['Conditions'] = INFO_OBJECT
|
||||
|
||||
munkicommon.display_detail('**Checking for installs**')
|
||||
processManifestForKey(mainmanifestpath, 'managed_installs',
|
||||
|
||||
Reference in New Issue
Block a user