Changeset 2648 for package_branches


Ignore:
Timestamp:
Dec 19, 2009, 10:30:08 PM (15 years ago)
Author:
price
Message:

command: recognize new "internal" name for delete

This fixes the bug where delete leads back to the now-broken info page.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • package_branches/invirt-web/cherrypy/code/main.py

    r2642 r2648  
    359359            """Handler for running commands like boot and delete on a VM."""
    360360            back = kwargs.get('back')
     361            if command_name == 'delete':
     362                back = 'list'
    361363            try:
    362364                d = controls.commandResult(cherrypy.request.login,
    363365                                           cherrypy.request.state,
    364366                                           command_name, machine_id, kwargs)
    365                 if d['command'] == 'Delete VM':
    366                     back = 'list'
    367367            except InvalidInput, err:
    368368                if not back:
Note: See TracChangeset for help on using the changeset viewer.