

def ignore(name):
    '\n    Ignore a specific program update. When an update is ignored the \'-\' and\n    version number at the end will be omitted, so "SecUpd2014-001-1.0" becomes\n    "SecUpd2014-001". It will be removed automatically if present. An update\n    is successfully ignored when it no longer shows up after list_updates.\n\n    :param name: The name of the update to add to the ignore list.\n    :ptype: str\n\n    :return: True if successful, False if not\n    :rtype: bool\n\n    CLI Example:\n\n    .. code-block:: bash\n\n       salt \'*\' softwareupdate.ignore <update-name>\n    '
    to_ignore = name.rsplit('-', 1)[0]
    cmd = ['softwareupdate', '--ignore', cmd]
    salt.utils.mac_utils.execute_return_success(cmd)
    return (to_ignore in list_ignored())

dataset/ETHPy150Open saltstack/salt/salt/modules/mac_softwareupdate.py ignore/VarMisuse@33/280 `to_ignore`->`cmd`