Changeset 694 for trunk


Ignore:
Timestamp:
Jul 21, 2008, 3:51:44 PM (16 years ago)
Author:
price
Message:

fix same error as r692 in two more places

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/packages/sipb-xen-www/code/controls.py

    r692 r694  
    260260        out, err = remctl('control', machine.name, 'destroy', err=True)
    261261        if err:
    262             if re.match("Error: Domain '.*' does not exist.", err):
     262            if re.match("machine '.*' is not on", err):
    263263                raise InvalidInput("action", "Power off",
    264264                                   "Machine is not on.")
     
    270270        out, err = remctl('control', machine.name, 'shutdown', err=True)
    271271        if err:
    272             if re.match("Error: Domain '.*' does not exist.", err):
     272            if re.match("machine '.*' is not on", err):
    273273                raise InvalidInput("action", "Shutdown",
    274274                                   "Machine is not on.")
Note: See TracChangeset for help on using the changeset viewer.