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:
Monty Taylor 2016-08-29 18:39:52 -05:00
parent 42eb9e307c
commit 87f90e6ffb
No known key found for this signature in database
GPG Key ID: 7BAE94BC7141A594
1 changed files with 2 additions and 1 deletions

View File

@ -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):