Skip to content

Commit

Permalink
bugfix: iter_modules needs to yield paths to container.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
muffato committed Nov 7, 2022
1 parent b71fb93 commit f069f48
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
1 change: 1 addition & 0 deletions shpc/main/registry/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,7 @@ def sync_from_remote(

# These are modules to update
for module in remote.iter_modules():
module = os.path.dirname(module)
if name and module != name:
continue

Expand Down
6 changes: 1 addition & 5 deletions shpc/main/registry/filesystem.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,11 +95,7 @@ def iter_modules(self):
yield module names
"""
# Find modules based on container.yaml
for filename in shpc.utils.recursive_find(self.source, "container.yaml"):
module = os.path.dirname(filename)
if not module:
continue
yield module
yield from shpc.utils.recursive_find(self.source, "container.yaml")

def find(self, name):
"""
Expand Down

0 comments on commit f069f48

Please sign in to comment.