From 64d1054912eb6968aee30a4f4e08b31fc48afd3c Mon Sep 17 00:00:00 2001 From: Mikolaj Izdebski Date: Thu, 1 Nov 2018 01:34:03 +0000 Subject: [PATCH] Fix a typo in SQL --- playbooks/manual/staging-sync/templates/koji-reset-staging.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/playbooks/manual/staging-sync/templates/koji-reset-staging.sql b/playbooks/manual/staging-sync/templates/koji-reset-staging.sql index a6f2337b38..15b32f9dda 100644 --- a/playbooks/manual/staging-sync/templates/koji-reset-staging.sql +++ b/playbooks/manual/staging-sync/templates/koji-reset-staging.sql @@ -80,7 +80,7 @@ update repo set state = 3 where state in (0, 1, 2); {% for group in builder_groups %} {% for host in groups[group.name] %} select now() as time, 'adding staging host {{ host }}' as msg; -delete from host_config where host_id in (select * from host where name='{{host}}'); +delete from host_config where host_id in (select id from host where name='{{host}}'); 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);