set optional-arches to list

fixes #697
This commit is contained in:
Yuming Zhu 2017-11-14 09:02:02 +00:00 committed by Mike McLean
parent 5574ad7817
commit d1f0ed41ac

View file

@ -5747,8 +5747,6 @@ def _build_image(options, task_opts, session, args, img_type):
print('')
hub_opts = {}
if hasattr(task_opts, 'optional_arches'):
hub_opts['optional_arches'] = task_opts.optional_arches.split(',')
passthru_opts = [
'format', 'install_tree_url', 'isoname', 'ksurl',
'ksversion', 'release', 'repo', 'scratch', 'skip_tag',
@ -5760,6 +5758,9 @@ 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'):
hub_opts['optional_arches'] = hub_opts['optional_arches'].split(',')
# finally, create the task.
task_id = session.buildImage(args[0], args[1], arch, target, ksfile,
img_type, opts=hub_opts, priority=priority)