def get_catalog():
    cmd = ['defaults',
           'read',
           '/Library/Preferences/com.apple.SoftwareUpdate.plist']
    out = salt.utils.mac_utils.execute_return_result(cmd)

    if 'AppleCatalogURL' in out:
        cmd.append('AppleCatalogURL')
        out = salt.utils.mac_utils.execute_return_result(cmd)
        return out
    elif 'CatalogURL' in out:
        cmd.append('CatalogURL')
        out = salt.utils.mac_utils.execute_return_result(cmd)
        return out
    else:
        return 'Default'
Run migrations in 'online' mode.
dataset/ETHPy150Open saltstack/salt/salt/modules/mac_softwareupdate.py/get_catalog--crossover with--dataset/ETHPy150Open aromanovich/kozmic-ci/migrations/env.py/run_migrations_online