mirror of
https://github.com/valitydev/salt.git
synced 2024-11-07 17:09:03 +00:00
commit
cc1591e3a4
@ -291,7 +291,7 @@ def run_stdout(cmd, cwd=None, runas=None, shell=DEFAULT_SHELL, env=(),
|
|||||||
salt '*' cmd.run_stdout template=jinja "ls -l /tmp/{{grains.id}} | awk '/foo/{print $2}'"
|
salt '*' cmd.run_stdout template=jinja "ls -l /tmp/{{grains.id}} | awk '/foo/{print $2}'"
|
||||||
|
|
||||||
'''
|
'''
|
||||||
stdout = _run(cmd, runas=runas, cwd=cwd, shell=shell, env=(),
|
stdout = _run(cmd, runas=runas, cwd=cwd, shell=shell, env=env,
|
||||||
template=template, rstrip=rstrip)["stdout"]
|
template=template, rstrip=rstrip)["stdout"]
|
||||||
log.debug('stdout: {0}'.format(stdout))
|
log.debug('stdout: {0}'.format(stdout))
|
||||||
return stdout
|
return stdout
|
||||||
|
Loading…
Reference in New Issue
Block a user