MCPcopy Create free account
hub / github.com/saltstack/salt / _log_cmd

Function _log_cmd

salt/modules/cmdmod.py:85–89  ·  view source on GitHub ↗
(cmd)

Source from the content-addressed store, hash-verified

83
84
85def _log_cmd(cmd):
86 if isinstance(cmd, (tuple, list)):
87 return cmd[0].strip()
88 else:
89 return str(cmd).split()[0].strip()
90
91
92def _check_cb(cb_):

Callers 2

_runFunction · 0.85
runFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected