Skip to content

Commit

Permalink
bugfix: iter_modules now returns path to the container.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
muffato committed Nov 7, 2022
1 parent ccdab16 commit c5b4cb9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion shpc/main/registry/remote.py
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ def _update_clone_cache(self):
config_url = self.get_raw_container_url(module)
self._cache[module] = {
"config": shpc.utils.read_yaml(
os.path.join(tmplocal.source, module, "container.yaml")
os.path.join(tmplocal.source, module)
),
"config_url": config_url,
}
Expand Down
2 changes: 1 addition & 1 deletion shpc/tests/test_sync.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ def test_filesystem_upgrade(tmp_path):
mods = list(test_registry.iter_modules())
assert len(mods) == 1
module = mods[0]
assert module == "dinosaur/salad"
assert module == "dinosaur/salad/container.yaml"

# Upgrade the current registry from the "remote" (test registry)
assert not client.registry.exists(module)
Expand Down

0 comments on commit c5b4cb9

Please sign in to comment.