MCPcopy Create free account
hub / github.com/saltstack/salt / cmd

Method cmd

salt/client/ssh/client.py:156–169  ·  view source on GitHub ↗

Execute a single command via the salt-ssh subsystem and return all routines at once .. versionadded:: 2015.5.0

(
        self, tgt, fun, arg=(), timeout=None, tgt_type="glob", kwarg=None, **kwargs
    )

Source from the content-addressed store, hash-verified

154 yield from ssh.run_iter(jid=kwargs.get("jid", None))
155
156 def cmd(
157 self, tgt, fun, arg=(), timeout=None, tgt_type="glob", kwarg=None, **kwargs
158 ):
159 """
160 Execute a single command via the salt-ssh subsystem and return all
161 routines at once
162
163 .. versionadded:: 2015.5.0
164 """
165 ssh = self._prep_ssh(tgt, fun, arg, timeout, tgt_type, kwarg, **kwargs)
166 final = {}
167 for ret in ssh.run_iter(jid=kwargs.get("jid", None)):
168 final.update(ret)
169 return final
170
171 def cmd_sync(self, low):
172 """

Callers 4

cmd_syncMethod · 0.95
cmd_subsetMethod · 0.95
cmdFunction · 0.95
safe_acceptFunction · 0.95

Calls 4

_prep_sshMethod · 0.95
run_iterMethod · 0.80
getMethod · 0.45
updateMethod · 0.45

Tested by

no test coverage detected