aboutsummaryrefslogtreecommitdiffstats
path: root/bootstrap
diff options
context:
space:
mode:
Diffstat (limited to 'bootstrap')
-rwxr-xr-xbootstrap/codesearch/create_config.py12
1 files changed, 11 insertions, 1 deletions
diff --git a/bootstrap/codesearch/create_config.py b/bootstrap/codesearch/create_config.py
index 604338fd8..def4b3ecd 100755
--- a/bootstrap/codesearch/create_config.py
+++ b/bootstrap/codesearch/create_config.py
@@ -28,7 +28,17 @@ def get_projects_list():
def create_repos_list(projects):
"""Create a map of all projects to their repositories' URLs."""
- return {p: {"url": "{}/{}".format(ONAP_CGIT, p), "url-pattern": {"base-url": "{url}/tree/{path}{anchor}", "anchor": "#n{line}"}} for p in projects}
+ repos_list = {}
+ for project in projects:
+ repos_list[project] = {
+ "url": "{}/{}".format(ONAP_CGIT, project),
+ "url-pattern": {
+ "base-url": "{url}/tree/{path}{anchor}",
+ "anchor": "#n{line}"
+ }
+ }
+
+ return repos_list
def main():