pass the command name to implementations
This commit is contained in:
parent
b31de67c7b
commit
26faa0dc4a
teeth_agent
@ -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.')
|
||||
|
Loading…
x
Reference in New Issue
Block a user