always create inverted_user_cache
This should take negligible time. Signed-off-by: Nils Philippsen <nils@redhat.com>
This commit is contained in:
parent
6e479a6a05
commit
96eb19bcb7
1 changed files with 2 additions and 2 deletions
|
@ -141,6 +141,8 @@ class BugzillaProxy:
|
|||
# Sometimes, building the user cache up front fails with a timeout.
|
||||
# It's ok, we build the cache as-needed later in the script.
|
||||
self.user_cache = {}
|
||||
else:
|
||||
self.invert_user_cache()
|
||||
|
||||
def build_product_cache(self, pagure_projects):
|
||||
""" Cache the bugzilla info about each package in each product.
|
||||
|
@ -748,8 +750,6 @@ class DistgitBugzillaSync:
|
|||
self.env['bugzilla']['user'],
|
||||
self.env['bugzilla']['password'],
|
||||
self.env)
|
||||
if self.args.print_fas_names:
|
||||
bugzilla.invert_user_cache()
|
||||
|
||||
if self.env["verbose"]:
|
||||
times["FAS cache building end"] = time.time()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue