pass command results back to the API

This commit is contained in:
Russell Haering 2013-12-27 15:06:29 -08:00
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: