From acf521437f70af8fffff423642d9fc94bf49196d Mon Sep 17 00:00:00 2001 From: Yuming Zhu Date: Nov 14 2017 09:08:46 +0000 Subject: set optional-arches to list fixes #697 --- diff --git a/cli/koji_cli/commands.py b/cli/koji_cli/commands.py index c93724a..69b5ae2 100644 --- a/cli/koji_cli/commands.py +++ b/cli/koji_cli/commands.py @@ -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)