"""
Wipe PYTHONHOME environment variable for venvjailed salt-minion
"""


TRANSACTIONAL = False


def __virtual__():
    global TRANSACTIONAL
    TRANSACTIONAL = __grains__.get("transactional", False)
    return True


def execute(opts, data, func, args, kwargs):
    """
    Wipe PYTHONHOME environment variable for venvjailed salt-minion
    """
    global TRANSACTIONAL
    if TRANSACTIONAL:
        return __executors__["transactional_update.execute"](
            opts, data, func, args, kwargs
        )
    return __executors__["direct_call.execute"](opts, data, func, args, kwargs)
