Execute a single command via the salt-ssh subsystem and return a generator .. versionadded:: 2015.5.0
(
self,
tgt,
fun,
arg=(),
timeout=None,
tgt_type="glob",
ret="",
kwarg=None,
**kwargs,
)
| 134 | return salt.client.ssh.SSH(opts) |
| 135 | |
| 136 | def cmd_iter( |
| 137 | self, |
| 138 | tgt, |
| 139 | fun, |
| 140 | arg=(), |
| 141 | timeout=None, |
| 142 | tgt_type="glob", |
| 143 | ret="", |
| 144 | kwarg=None, |
| 145 | **kwargs, |
| 146 | ): |
| 147 | """ |
| 148 | Execute a single command via the salt-ssh subsystem and return a |
| 149 | generator |
| 150 | |
| 151 | .. versionadded:: 2015.5.0 |
| 152 | """ |
| 153 | ssh = self._prep_ssh(tgt, fun, arg, timeout, tgt_type, kwarg, **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 |
no test coverage detected