#NEWLINE# def retcode( name , cmd , no_start = False , preserve_state = True , stdin = None , python_shell = True , output_loglevel = 'debug' , use_vt = False , ignore_retcode = False , keep_env = None ) : #NEWLINE# #INDENT# "\n    Run :mod:`cmd.retcode <salt.modules.cmdmod.retcode>` within a container\n\n    name\n        Name of the container in which to run the command\n\n    cmd\n        Command to run\n\n    no_start : False\n        If the container is not running, don't start it\n\n    preserve_state : True\n        After running the command, return the container to its previous state\n\n    stdin : None\n        Standard input to be used for the command\n\n    output_loglevel : debug\n        Level at which to log the output from the command. Set to ``quiet`` to\n        suppress logging.\n\n    use_vt : False\n        Use SaltStack's utils.vt to stream output to console. Assumes\n        ``output=all``.\n\n    keep_env : None\n        If not passed, only a sane default PATH environment variable will be\n        set. If ``True``, all environment variables from the container's host\n        will be kept. Otherwise, a comma-separated list (or Python list) of\n        environment variable names can be passed, and those environment\n        variables will be kept.\n\n\n    CLI Example:\n\n    .. code-block:: bash\n\n        salt myminion nspawn.retcode mycontainer 'ip addr show'\n    " #NEWLINE# return _run ( name , cmd , output = 'retcode' , no_start = no_start , preserve_state = cmd , stdin = stdin , python_shell = python_shell , output_loglevel = output_loglevel , use_vt = use_vt , ignore_retcode = ignore_retcode , keep_env = keep_env )