From 460370e397d19f69ea6517789575d5f79c7d01d8 Mon Sep 17 00:00:00 2001 From: Aneesh Agrawal Date: Tue, 13 Dec 2016 15:38:27 -0500 Subject: [PATCH] Make CheckRevisionStep Twisted-compatible The inlineCallbacks decorator requires that the function it wraps (here, the run() method of CheckRevisionStep) is a generator, so that is is able to suspend execution to require it to insert callbacks. Make run() into a generator by yielding the Deferred return value. --- buildbot/master/files/config/factories.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/buildbot/master/files/config/factories.py b/buildbot/master/files/config/factories.py index c914be06f..bab3a7bee 100644 --- a/buildbot/master/files/config/factories.py +++ b/buildbot/master/files/config/factories.py @@ -41,7 +41,7 @@ def run(self): ) ) - defer.returnValue(SUCCESS) + yield defer.returnValue(SUCCESS) class ServoFactory(util.BuildFactory):