

def fire(data, tag):
    '\n    Fire an event on the local minion event bus. Data must be formed as a dict.\n\n    CLI Example:\n\n    .. code-block:: bash\n\n        salt \'*\' event.fire \'{"data":"my event data"}\' \'tag\'\n    '
    try:
        event = salt.utils.event.get_event('minion', sock_dir=__opts__['sock_dir'], transport=__opts__['transport'], opts=__opts__, listen=False)
        return event.fire_event(data, tag)
    except Exception:
        (exc_type, exc_value, exc_traceback) = sys.exc_info()
        lines = traceback.format_exception(exc_type, exc_value, exc_traceback)
        log.debug(lines)
        return False

dataset/ETHPy150Open saltstack/salt/salt/modules/event.py fire/original