Skip to content

Commit c1cb6c0

Browse files
committed
pathogens: use top level workflows key
List workflows under a top level `workflows` key in the `nextstrain-pathogen.yaml` file instead of listing workflows under `compatibility['nextstrain run']`. Suggested by @victorlin <#462 (comment)>
1 parent bb36adf commit c1cb6c0

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

nextstrain/cli/pathogens.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -314,9 +314,9 @@ def registered_workflows(self) -> Dict[str, Dict]:
314314
debug("pathogen does not have a registration")
315315
return {}
316316

317-
workflows = self.registration.get("compatibility", {}).get("nextstrain run")
317+
workflows = self.registration.get("workflows")
318318
if not isinstance(workflows, dict):
319-
debug(f"pathogen registration.compatibility['nextstrain runs'] is not a dict (got a {type(workflows).__name__})")
319+
debug(f"pathogen registration.workflows is not a dict (got a {type(workflows).__name__})")
320320
return {}
321321

322322
return workflows

0 commit comments

Comments
 (0)