MCPcopy
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
14def has_network(ctx, name):
15 p = ctx.run("docker", "network", "ls", capture=True)
16 return name in p.stdout.decode()
17
18
19def create_network(ctx, name):

Callers 1

createFunction · 0.85

Calls 1

runMethod · 0.45

Tested by

no test coverage detected