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
)
| 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 | """ |
no test coverage detected