From 12dc294a90c0c091bd0d055a3963823331101970 Mon Sep 17 00:00:00 2001 From: Jan Kaluza Date: Jul 03 2018 12:04:21 +0000 Subject: Koji API expects white-space separated list. --- diff --git a/freshmaker/lightblue.py b/freshmaker/lightblue.py index 99df80c..a3a9d84 100644 --- a/freshmaker/lightblue.py +++ b/freshmaker/lightblue.py @@ -322,7 +322,7 @@ class ContainerImage(dict): arches = [conf.manifest_v2_arch_map.get(arch, arch) for arch in arches] # Finally, return the list, joined. - return ','.join(arches) + return ' '.join(arches) @region.cache_on_arguments() def _get_additional_data_from_distgit(self, repository, branch, commit): diff --git a/tests/test_lightblue.py b/tests/test_lightblue.py index 2c0af27..cfc0c91 100644 --- a/tests/test_lightblue.py +++ b/tests/test_lightblue.py @@ -1695,7 +1695,7 @@ class TestArchitecturesFromRegistry(helpers.FreshmakerTestCase): ] } result = image._get_architectures_from_registry("foo", self.build) - self.assertEqual(result, 'x86_64,s390x,ppc64le') + self.assertEqual(result, 'x86_64 s390x ppc64le') requests.get.assert_called_once_with( 'http://blue-pulp-smocker01.sledmat.com:8888/v2/devtools/' 'rust-toolset-7-rhel7/manifests/'