Skip to content

Commit

Permalink
gha: more debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
csegarragonz committed Dec 10, 2024
1 parent 276f870 commit c4dedf0
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion tasks/containerd.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from invoke import task
from os import makedirs
from os import makedirs, stat
from os.path import join
from subprocess import CalledProcessError, run
from tasks.util.docker import is_ctr_running
Expand Down Expand Up @@ -260,4 +260,9 @@ def cleanup():

# Restart containerd service
restart_containerd()

# Sanity check
if stat(CONTAINERD_CONFIG_FILE).st_size == 0:
raise RuntimeError("containerd config file is empty!")

print("Success!")

0 comments on commit c4dedf0

Please sign in to comment.