From 0a34a784302bfb159bc74bef59dc9b2f0e99f7d8 Mon Sep 17 00:00:00 2001 From: Ralph Bean Date: Fri, 8 Apr 2016 09:38:51 -0400 Subject: [PATCH] Bugfix - st_complete needs to be defined earlier. --- hub/kojihub.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hub/kojihub.py b/hub/kojihub.py index bcc013d5..7f0ede02 100644 --- a/hub/kojihub.py +++ b/hub/kojihub.py @@ -11000,10 +11000,10 @@ class HostExports(object): task.assertHost(host.id) self.importImage(task_id, build_id, results) + st_complete = koji.BUILD_STATES['COMPLETE'] build_info = get_build(build_id) koji.plugin.run_callbacks('preBuildStateChange', attribute='state', old=build_info['state'], new=st_complete, info=build_info) - st_complete = koji.BUILD_STATES['COMPLETE'] update = UpdateProcessor('build', clauses=['id=%(build_id)i'], values={'build_id': build_id}) update.set(id=build_id, state=st_complete)