Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
85
def
_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
92
def
_check_cb(cb_):
Callers
2
_run
Function · 0.85
run
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected