Skip to content

Commit

Permalink
Merge pull request #70 from ilausuch/fix_bugzilla_module
Browse files Browse the repository at this point in the history
  • Loading branch information
ilausuch authored Aug 1, 2023
2 parents 6d08c54 + 3d48f3e commit 87034cb
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions dumper.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import yaml
from trackers.redmine.redmine_config import RedmineConfig
from trackers.redmine.redmine_dumper import RedmineDumper
from trackers.bugzilla.bugzilla_suse import bzmain, bzlist_queries
# from trackers.bugzilla.bugzilla_suse import bzmain, bzlist_queries


def main():
Expand Down Expand Up @@ -78,18 +78,18 @@ def main():
args.source, args.project, args.database)
dumper = RedmineDumper(args.database, logger.level)
dumper.dump_to_db(args.project)
elif args.source == "bugzilla":
if args.listqueries:
bzlist_queries()
else:
params = {'product': args.prod,
'status': args.status,
'severity': args.severity,
'priority': args.priority,
'range': args.range}
for script in args.exec:
logger.info("%s is passed to run", script)
bzmain(args.exec, params)
# elif args.source == "bugzilla":
# if args.listqueries:
# bzlist_queries()
# else:
# params = {'product': args.prod,
# 'status': args.status,
# 'severity': args.severity,
# 'priority': args.priority,
# 'range': args.range}
# for script in args.exec:
# logger.info("%s is passed to run", script)
# bzmain(args.exec, params)
else:
raise NotImplementedError(f"'--source {args.source}' not supported")

Expand Down

0 comments on commit 87034cb

Please sign in to comment.