X-Git-Url: http://xvm.mit.edu/gitweb/invirt/packages/invirt-web.git/blobdiff_plain/d7bc5fe65d556f4174757e657b3c7614289f7186..6b7e539177038fb72a6df8c93d35854dcc06bd58:/code/main.py diff --git a/code/main.py b/code/main.py index 7c04d25..3be15a6 100755 --- a/code/main.py +++ b/code/main.py @@ -353,12 +353,12 @@ console will suffer artifacts. def command(self, command_name, machine_id, **kwargs): """Handler for running commands like boot and delete on a VM.""" back = kwargs.get('back') + if command_name == 'delete': + back = 'list' try: d = controls.commandResult(cherrypy.request.login, cherrypy.request.state, command_name, machine_id, kwargs) - if d['command'] == 'Delete VM': - back = 'list' except InvalidInput, err: if not back: raise