Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/saltstack/salt
/ has_network
Function
has_network
tools/container.py:14–16 ·
view source on GitHub ↗
(ctx, name)
Source
from the content-addressed store, hash-verified
12
13
14
def
has_network(ctx, name):
15
p = ctx.run(
"docker"
,
"network"
,
"ls"
, capture=True)
16
return
name in p.stdout.decode()
17
18
19
def
create_network(ctx, name):
Callers
1
create
Function · 0.85
Calls
1
run
Method · 0.45
Tested by
no test coverage detected