Bug 1451481 - followup to fix extraneous empty dictionary for sub configs, r=aki THUNDERBIRD_60_0b3_BUILD1 THUNDERBIRD_60_0b3_RELEASE
authorNick Thomas <nthomas@mozilla.com>
Wed, 11 Apr 2018 13:32:25 +1200
changeset 8636 5641e7cf9ea442240b5b2d8eed47a1e08293bec2
parent 8635 d78d81331951a71ba722211d58f7bf18eb7d7d28
child 8637 644ba98d07a9043e6c8ed4fa20c0d79ae64754ae
push id282
push userbmo:jlorenzo@mozilla.com
push dateThu, 19 Apr 2018 11:18:20 +0000
reviewersaki
bugs1451481
Bug 1451481 - followup to fix extraneous empty dictionary for sub configs, r=aki
lib/python/kickoff/partners.py
--- a/lib/python/kickoff/partners.py
+++ b/lib/python/kickoff/partners.py
@@ -224,17 +224,17 @@ def parse_config(data):
 def get_repack_configs(repackRepo, token):
     """ For a partner repository, retrieve all the repack.cfg files and parse them into a dict """
     log.debug("Querying for configs in %s", repackRepo)
     owner, repo = get_repo_params(repackRepo)
     query = REPACK_CFG_QUERY % {'owner': owner, 'repo': repo}
     raw_configs = query_api(query, token)
     raw_configs = raw_configs['data']['repository']['object']['entries']
 
-    configs = {repo: {}}
+    configs = {}
     for sub_config in raw_configs:
         name = sub_config['name']
         for file in sub_config['object'].get('entries', []):
             if file['name'] != 'repack.cfg':
                 continue
             configs[name] = parse_config(file['object']['text'])
     return configs