def getPrimaryManifestCatalogs(client_id='', force_refresh=False):
    global MACHINE
    if not MACHINE:
        MACHINE = munkicommon.getMachineFacts()

    cataloglist = []
    if force_refresh:
        # Fetch manifest from repo
        manifest = getPrimaryManifest(client_id)
    else:
        # Use locally stored manifest
        manifest_dir = os.path.join(munkicommon.pref('ManagedInstallDir'),
                                    'manifests')
        manifestname = 'client_manifest.plist'
        manifest = os.path.join(manifest_dir, manifestname)

    if manifest:
        manifestdata = getManifestData(manifest)
        cataloglist = manifestdata.get('catalogs')
        if cataloglist and force_refresh:
            getCatalogs(cataloglist)
    return cataloglist
Return list of catalogs from primary client manifest
dataset/ETHPy150Open munki/munki/code/client/munkilib/updatecheck.py/getPrimaryManifestCatalogs