MCPcopy Index your code
hub / github.com/saltstack/salt / run_call

Method run_call

tests/support/case.py:254–277  ·  view source on GitHub ↗
(
        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,

Callers 15

run_functionMethod · 0.95
test_get_allow_tgtMethod · 0.80
test_send_allow_tgtMethod · 0.80
test_executorMethod · 0.80
test_output_jsonMethod · 0.80
test_output_nestedMethod · 0.80
test_output_quietMethod · 0.80
test_output_pprintMethod · 0.80
test_output_rawMethod · 0.80

Calls 3

run_scriptMethod · 0.95
formatMethod · 0.80
debugMethod · 0.80

Tested by 14

test_get_allow_tgtMethod · 0.64
test_send_allow_tgtMethod · 0.64
test_executorMethod · 0.64
test_output_jsonMethod · 0.64
test_output_nestedMethod · 0.64
test_output_quietMethod · 0.64
test_output_pprintMethod · 0.64
test_output_rawMethod · 0.64
test_output_txtMethod · 0.64