pass command results back to the API
This commit is contained in:
parent
da1b5bfecc
commit
604ed14f2d
@ -62,11 +62,13 @@ class BaseTeethAgent(object):
|
||||
if command_name not in self.command_map:
|
||||
raise errors.InvalidCommandError(command_name)
|
||||
|
||||
self.command_map[command_name](**kwargs)
|
||||
result = self.command_map[command_name](**kwargs)
|
||||
|
||||
# TODO(russellhaering): allow long-running commands to return a
|
||||
# "promise" which can be converted into a watch URL.
|
||||
|
||||
return result
|
||||
|
||||
def run(self):
|
||||
"""Run the Teeth Agent."""
|
||||
if self.started_at:
|
||||
|
Loading…
x
Reference in New Issue
Block a user