pass the command name to implementations

This commit is contained in:
Russell Haering 2013-12-31 11:49:32 -08:00
parent b31de67c7b
commit 26faa0dc4a
2 changed files with 2 additions and 2 deletions

@ -62,7 +62,7 @@ class BaseTeethAgent(object):
if command_name not in self.command_map:
raise errors.InvalidCommandError(command_name)
result = self.command_map[command_name](**kwargs)
result = self.command_map[command_name](command_name, **kwargs)
# TODO(russellhaering): allow long-running commands to return a
# "promise" which can be converted into a watch URL.

@ -40,7 +40,7 @@ class StandbyAgent(base.BaseTeethAgent):
raise errors.InvalidCommandParamsError(
'Image \'hashes\' must be a dictionary.')
def cache_images(self, image_infos):
def cache_images(self, command_name, image_infos):
if type(image_infos) != list:
raise errors.InvalidCommandParamsError(
'\'image_infos\' parameter must be a list.')