MCPcopy Create free account
hub / github.com/ceph/ceph / push_image

Function push_image

src/script/cpatch.py:91–96  ·  view source on GitHub ↗

Push the target image. Assumes login already performed.

(cli_ctx)

Source from the content-addressed store, hash-verified

89
90
91def push_image(cli_ctx):
92 """Push the target image. Assumes login already performed."""
93 cmd = [cli_ctx.engine, "push", cli_ctx.target]
94 if cli_ctx.root_build:
95 cmd.insert(0, "sudo")
96 _run(cmd).check_returncode()
97
98
99class ChangeDir:

Callers 1

mainFunction · 0.85

Calls 2

_runFunction · 0.70
insertMethod · 0.45

Tested by

no test coverage detected