From eba9bd03ea16c14e16931400ee890d8367f1c9e2 Mon Sep 17 00:00:00 2001 From: Mikolaj Izdebski Date: Thu, 1 Nov 2018 01:17:38 +0000 Subject: [PATCH] Koji host arches belong in host_config now --- .../manual/staging-sync/templates/koji-reset-staging.sql | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/playbooks/manual/staging-sync/templates/koji-reset-staging.sql b/playbooks/manual/staging-sync/templates/koji-reset-staging.sql index 5858793366..ed91c888cf 100644 --- a/playbooks/manual/staging-sync/templates/koji-reset-staging.sql +++ b/playbooks/manual/staging-sync/templates/koji-reset-staging.sql @@ -83,8 +83,10 @@ select now() as time, 'adding staging host {{ host }}' as msg; delete from host where name='{{ host }}'; delete from users where name='{{ host }}'; insert into users (name, usertype, krb_principal, status) values ('{{ host }}', 1, 'compile/{{ host }}@STG.FEDORAPROJECT.ORG', 0); -insert into host (user_id, name, arches) values ( - (select id from users where name='{{host}}'), '{{host}}', '{{ group.arches }}'); +insert into host (user_id, name) values ( + (select id from users where name='{{host}}'), '{{host}}'); +insert into host_config (host_id, arches, creator_id) values ( + (select id from hosts where name='{{host}}'), '{{ group.arches }}', 2045); {% for channel in [ 'default', 'appliance', 'vm', 'secure-boot', 'compose', 'eclipse', 'images', 'image'] + group.extra_channels|default([]) %} insert into host_channels (host_id, channel_id) values ( (select id from host where name='{{host}}'), (select id from channels where name='{{channel}}'));