Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add support for parsing filter-type and test-type plugins via yaml files (reopened) #286

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion galaxy_importer/finder.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,10 @@ def _find_plugins(self, content_type, content_dir):
"""Find all python files anywhere inside content_dir."""
for path, _, files in os.walk(content_dir):
for file in files:
if not file.endswith(".py") or file == "__init__.py":
if file == "__init__.py" or not (
file.endswith(".py") or file.endswith(".yaml") or
file.endswith(".yml")
):
continue
file_path = os.path.join(path, file)
rel_path = os.path.relpath(file_path, self.path)
Expand Down
Loading