Drop dictionary comprehension from repository list creation

Complex is better than complicated.

Issue-ID: ONAPARC-540
Change-Id: I6dbc03166496049e92ff9401450b3ac563b3fb38
Signed-off-by: Pawel Wieczorek <p.wieczorek2@samsung.com>
diff --git a/bootstrap/codesearch/create_config.py b/bootstrap/codesearch/create_config.py
index 604338f..def4b3e 100755
--- a/bootstrap/codesearch/create_config.py
+++ b/bootstrap/codesearch/create_config.py
@@ -28,7 +28,17 @@
 
 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():