Skip to content

Commit

Permalink
Create suite repositories with repository_suite_definition type by de…
Browse files Browse the repository at this point in the history
…fault
  • Loading branch information
nsoranzo committed Aug 12, 2016
1 parent 9fdf490 commit 057f4f0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion planemo/shed/__init__.py
Expand Up @@ -573,10 +573,11 @@ def _build_suite_repo(config, repos, suite_config):

name = suite_config.get("name", None)
if name is None:
raise Exception("suite_configitories required name key.")
raise Exception("suite_config requires name key.")
description = suite_config.get("description", "")
long_description = suite_config.get("long_description", None)
owner = config["owner"]
repo_type = suite_config.get('type', REPO_TYPE_SUITE)

repo_pairs = map(lambda name: (owner, name), repos.keys())
extra_repos = suite_config.get("include_repositories", {})
Expand All @@ -593,6 +594,7 @@ def _build_suite_repo(config, repos, suite_config):
"include": [],
"name": name,
"description": description,
"type": repo_type,
}
if long_description:
repo["long_description"] = long_description
Expand Down

0 comments on commit 057f4f0

Please sign in to comment.