def ignore(name):
    # remove everything after and including the '-' in the updates name.
    to_ignore = name.rsplit('-', 1)[0]

    cmd = ['softwareupdate', '--ignore', to_ignore]
    salt.utils.mac_utils.execute_return_success(cmd)

    return to_ignore in list_ignored()
Ignore a specific program update. When an update is ignored the '-' and
dataset/ETHPy150Open saltstack/salt/salt/modules/mac_softwareupdate.py/ignore