allow multiple arches on spin-livemedia command line

This commit is contained in:
Mike McLean 2016-01-13 17:13:36 -05:00
parent a2e5f00cce
commit 71bee265e5

View file

@ -5613,7 +5613,11 @@ def _build_image(options, task_opts, session, args, img_type):
tmp_target['dest_tag_name'])
# Set the architecture
arch = koji.canonArch(args[3])
if img_type == 'livemedia':
# livemedia accepts multiple arches
arch = [koji.canonArch(a) for a in ','.split(args[3])]
else:
arch = koji.canonArch(args[3])
# Upload the KS file to the staging area.
# If it's a URL, it's kojid's job to go get it when it does the checkout.