From 247b7d4849690a5b9d79601f9c8743ee93b945c4 Mon Sep 17 00:00:00 2001 From: Dennis Gilmore Date: Thu, 2 Mar 2017 00:56:00 +0000 Subject: [PATCH] fix up hub arch syncing sync all arch hubs when fedora is 25 or less sync only primary and s390 for 26 and up Signed-off-by: Dennis Gilmore --- roles/bodhi2/backend/templates/owner-sync-pkgdb.j2 | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/roles/bodhi2/backend/templates/owner-sync-pkgdb.j2 b/roles/bodhi2/backend/templates/owner-sync-pkgdb.j2 index fd16ad87bb..51eac473f4 100755 --- a/roles/bodhi2/backend/templates/owner-sync-pkgdb.j2 +++ b/roles/bodhi2/backend/templates/owner-sync-pkgdb.j2 @@ -115,7 +115,10 @@ if __name__ == '__main__': {% if env == 'staging' %} arches = ["primary"] {% else %} - arches = ["primary", "arm", "ppc", "s390"] + if version <= "25": + arches = ["primary", "arm", "ppc", "s390"] + else: + arches = ["primary", "s390"] {% endif %} data = requests.get(urljoin(BASEURL, 'api/collections'), verify=VERIFY).json()