Fix two minor bugs in generate_task_class
The superclass name was wrong, and then we didn't actually return from it. Change-Id: Id5a45b80741555bf2024b01c6edb771bd7e9b841
This commit is contained in:
parent
42eb9e307c
commit
87f90e6ffb
|
@ -191,7 +191,7 @@ def generate_task_class(method, name, result_filter_cb):
|
|||
self._method = method
|
||||
|
||||
def wait(self, raw=False):
|
||||
super(RequestTask, self).wait()
|
||||
super(RunTask, self).wait()
|
||||
|
||||
if raw:
|
||||
# Do NOT convert the result.
|
||||
|
@ -204,6 +204,7 @@ def generate_task_class(method, name, result_filter_cb):
|
|||
else:
|
||||
meth = getattr(client, self._method)
|
||||
return meth(**self.args)
|
||||
return RunTask
|
||||
|
||||
|
||||
class TaskManager(object):
|
||||
|
|
Loading…
Reference in New Issue