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

Method run_spm

tests/support/case.py:315–337  ·  view source on GitHub ↗

Execute spm

(
        self,
        arg_str,
        with_retcode=False,
        catch_stderr=False,
        timeout=None,
        config_dir=None,
    )

Source from the content-addressed store, hash-verified

313 return ret
314
315 def run_spm(
316 self,
317 arg_str,
318 with_retcode=False,
319 catch_stderr=False,
320 timeout=None,
321 config_dir=None,
322 ):
323 """
324 Execute spm
325 """
326 if timeout is None:
327 timeout = self.RUN_TIMEOUT
328 ret = self.run_script(
329 "spm",
330 arg_str,
331 with_retcode=with_retcode,
332 catch_stderr=catch_stderr,
333 timeout=timeout,
334 config_dir=config_dir,
335 )
336 log.debug("Result of run_spm for command '%s': %s", arg_str, ret)
337 return ret
338
339 def run_script(
340 self,

Callers

nothing calls this directly

Calls 2

run_scriptMethod · 0.95
debugMethod · 0.80

Tested by

no test coverage detected