add option to print FAS names

Signed-off-by: Nils Philippsen <nils@redhat.com>
This commit is contained in:
Nils Philippsen 2019-11-21 16:16:02 +01:00
parent 5211712f23
commit 0e74c819ef

View file

@ -516,6 +516,10 @@ class DistgitBugzillaSync:
'-p', '--project', dest='projects', nargs='+',
help='Update one or more projects (provided as namespace/name), '
'in all of its products')
parser.add_argument(
'--print-fas-names', action='store_true', default=False,
help="Print FAS names rather than email addresses in output, useful when pasting into "
"public fora")
self.args = parser.parse_args()
@ -747,7 +751,8 @@ class DistgitBugzillaSync:
owner=project["products_poc"][product],
description=project['summary'],
qacontact=None,
cclist=project['watchers']
cclist=project['watchers'],
print_fas_names=self.args.print_fas_names,
)
except ValueError as e:
# A username didn't have a bugzilla address