Prepare the arguments
(
self, tgt, fun, arg=(), timeout=None, tgt_type="glob", kwarg=None, **kwargs
)
| 116 | return sane_kwargs |
| 117 | |
| 118 | def _prep_ssh( |
| 119 | self, tgt, fun, arg=(), timeout=None, tgt_type="glob", kwarg=None, **kwargs |
| 120 | ): |
| 121 | """ |
| 122 | Prepare the arguments |
| 123 | """ |
| 124 | kwargs = self.sanitize_kwargs(kwargs) |
| 125 | opts = copy.deepcopy(self.opts) |
| 126 | opts.update(kwargs) |
| 127 | if timeout: |
| 128 | opts["timeout"] = timeout |
| 129 | arg = salt.utils.args.condition_input(arg, kwarg) |
| 130 | opts["argv"] = [fun] + arg |
| 131 | opts["selected_target_option"] = tgt_type |
| 132 | opts["tgt"] = tgt |
| 133 | opts["arg"] = arg |
| 134 | return salt.client.ssh.SSH(opts) |
| 135 | |
| 136 | def cmd_iter( |
| 137 | self, |
no test coverage detected