Method
run_call
(
self,
arg_str,
with_retcode=False,
catch_stderr=False,
local=False,
timeout=None,
config_dir=None,
)
Source from the content-addressed store, hash-verified
| 252 | ) |
| 253 | |
| 254 | def run_call( |
| 255 | self, |
| 256 | arg_str, |
| 257 | with_retcode=False, |
| 258 | catch_stderr=False, |
| 259 | local=False, |
| 260 | timeout=None, |
| 261 | config_dir=None, |
| 262 | ): |
| 263 | if timeout is None: |
| 264 | timeout = self.RUN_TIMEOUT |
| 265 | if not config_dir: |
| 266 | config_dir = RUNTIME_VARS.TMP_MINION_CONF_DIR |
| 267 | arg_str = "{} {}".format("--local" if local else "", arg_str) |
| 268 | ret = self.run_script( |
| 269 | "salt-call", |
| 270 | arg_str, |
| 271 | with_retcode=with_retcode, |
| 272 | catch_stderr=catch_stderr, |
| 273 | timeout=timeout, |
| 274 | config_dir=config_dir, |
| 275 | ) |
| 276 | log.debug("Result of run_call for command '%s': %s", arg_str, ret) |
| 277 | return ret |
| 278 | |
| 279 | def run_function( |
| 280 | self, |