Ignore:
Timestamp:
Dec 20, 2009, 9:47:52 PM (15 years ago)
Author:
broder
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-rebased/code/main.py

    r2720 r2726  
    354354            """Handler for running commands like boot and delete on a VM."""
    355355            back = kwargs.get('back')
     356            if command_name == 'delete':
     357                back = 'list'
    356358            try:
    357359                d = controls.commandResult(cherrypy.request.login,
    358360                                           cherrypy.request.state,
    359361                                           command_name, machine_id, kwargs)
    360                 if d['command'] == 'Delete VM':
    361                     back = 'list'
    362362            except InvalidInput, err:
    363363                if not back:
Note: See TracChangeset for help on using the changeset viewer.