Skip to content

Commit

Permalink
nits: run clang-format
Browse files Browse the repository at this point in the history
  • Loading branch information
csegarragonz committed Jan 13, 2025
1 parent 0889831 commit 0cc5e15
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 3 deletions.
12 changes: 10 additions & 2 deletions tasks/containerd.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,8 +107,16 @@ def hot_replace(ctx):
print("Consider running: inv containerd.cli ")

for binary in CONTAINERD_BINARY_NAMES:
print(f"cp {CONTAINERD_CTR_NAME}:{CONTAINERD_CTR_BINPATH}/{binary} {CONTAINERD_HOST_BINPATH}/{binary}")
docker_cmd = f"sudo docker cp {CONTAINERD_CTR_NAME}:{CONTAINERD_CTR_BINPATH}/{binary} {CONTAINERD_HOST_BINPATH}/{binary}"
print(
(
f"cp {CONTAINERD_CTR_NAME}:{CONTAINERD_CTR_BINPATH}/{binary} "
f"{CONTAINERD_HOST_BINPATH}/{binary}"
)
)
docker_cmd = (
f"sudo docker cp {CONTAINERD_CTR_NAME}:{CONTAINERD_CTR_BINPATH}/"
f"{binary} {CONTAINERD_HOST_BINPATH}/{binary}"
)
run(docker_cmd, shell=True, check=True)

restart_containerd()
Expand Down
8 changes: 7 additions & 1 deletion tasks/sc2.py
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,13 @@ def deploy(ctx, debug=False, clean=False):

if clean:
# Remove all directories that we populate and modify
for nuked_dir in [COCO_ROOT, CONTAINERD_CONFIG_ROOT, HOST_CERT_DIR, KATA_ROOT, SC2_CONFIG_DIR]:
for nuked_dir in [
COCO_ROOT,
CONTAINERD_CONFIG_ROOT,
HOST_CERT_DIR,
KATA_ROOT,
SC2_CONFIG_DIR,
]:
if debug:
print(f"WARNING: nuking {nuked_dir}")
run(f"sudo rm -rf {nuked_dir}", shell=True, check=True)
Expand Down

0 comments on commit 0cc5e15

Please sign in to comment.