mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 01:18:58 +00:00
changed run_comps to run_all
This commit is contained in:
parent
9a03de189f
commit
7af2918c48
@ -45,12 +45,12 @@ def run_stderr(cmd, cwd='/root'):
|
||||
cwd=cwd,
|
||||
stderr=subprocess.PIPE).communicate()[0]
|
||||
|
||||
def run_comps(cmd, cwd='/root'):
|
||||
def run_all(cmd, cwd='/root'):
|
||||
'''
|
||||
Execute the passed command and return a dict of return data
|
||||
|
||||
CLI Example:
|
||||
salt '*' cmd.run_comps "ls -l | grep foo | awk '{print $2}'"
|
||||
salt '*' cmd.run_all "ls -l | grep foo | awk '{print $2}'"
|
||||
'''
|
||||
ret = {}
|
||||
proc = subprocess.Popen(cmd,
|
||||
|
Loading…
Reference in New Issue
Block a user