correct dict key check mechanism

Fixes: #742
https://pagure.io/koji/issue/742
This commit is contained in:
Franz Chih-Ping Hsieh 2017-12-08 14:48:50 +00:00 committed by Mike McLean
parent 20f6fec390
commit fce85a67c0

View file

@ -5760,7 +5760,7 @@ def _build_image(options, task_opts, session, args, img_type):
if val is not None:
hub_opts[opt] = val
if hasattr(hub_opts, 'optional_arches'):
if 'optional_arches' in hub_opts:
hub_opts['optional_arches'] = hub_opts['optional_arches'].split(',')
# finally, create the task.