Skip to content

Commit

Permalink
nits: more fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
csegarragonz committed Dec 10, 2024
1 parent 5b197cc commit cf840db
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions tasks/registry.py
Original file line number Diff line number Diff line change
Expand Up @@ -168,14 +168,14 @@ def start(ctx, debug=False, clean=False):
)
update_toml(CONTAINERD_CONFIG_FILE, updated_toml_str)

if (
read_value_from_toml(
CONTAINERD_CONFIG_FILE,
'plugins."io.containerd.grpc.v1.cri".registry.config_path',
)
== ""
):
config_path_value = read_value_from_toml(
CONTAINERD_CONFIG_FILE,
'plugins."io.containerd.grpc.v1.cri".registry.config_path',
)
if config_path_value == "":
raise RuntimeError("Error populating contaienrd config path!")
elif debug:
print(f"Containerd registry config path: {config_path_value}")

# Add the correspnding configuration to containerd
containerd_certs_dir = join(containerd_base_certs_dir, LOCAL_REGISTRY_URL)
Expand Down

0 comments on commit cf840db

Please sign in to comment.