X-Git-Url: http://xvm.mit.edu/gitweb/invirt/packages/invirt-web.git/blobdiff_plain/fd1ed40d1fae03d9d208a8c30e1902ad3d104082..58ca9122cce463bcd75474944b1b353e355f729d:/code/main.py diff --git a/code/main.py b/code/main.py index f0d1f53..a494046 100755 --- a/code/main.py +++ b/code/main.py @@ -230,7 +230,7 @@ console will suffer artifacts. d['err'] = err if err: for field, value in fields.items(): - setattr(d['defaults'], field, value)) + setattr(d['defaults'], field, value) else: d['new_machine'] = parsed_fields['name'] return d @@ -340,12 +340,13 @@ console will suffer artifacts. port=port, authtoken=token) return d + @cherrypy.expose @cherrypy.tools.mako(filename="/command.mako") @cherrypy.tools.require_POST() def command(self, command_name, machine_id, **kwargs): """Handler for running commands like boot and delete on a VM.""" - back = kwargs.get('back', None) + back = kwargs.get('back') try: d = controls.commandResult(cherrypy.request.login, cherrypy.request.state, @@ -682,4 +683,4 @@ Subject: %s p.stdin.close() p.wait() -random.seed() +random.seed() #sigh