buildcomponent: remove unnecessary closure

This commit is contained in:
Jimmy Zelinskie 2016-11-22 16:46:19 -05:00
parent c2b52c6efc
commit 3aa9d33492

View file

@ -159,10 +159,7 @@ class BuildComponent(BaseComponent):
def build_complete_callback(result):
""" This function is used to execute a coroutine as the callback. """
@trollius.coroutine
def closure():
yield From(self._build_complete(result))
trollius.ensure_future(closure())
trollius.ensure_future(self._build_complete(result))
self.call("io.quay.builder.build", **build_arguments).add_done_callback(build_complete_callback)