Changeset 694 for trunk/packages
- Timestamp:
- Jul 21, 2008, 3:51:44 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/packages/sipb-xen-www/code/controls.py
r692 r694 260 260 out, err = remctl('control', machine.name, 'destroy', err=True) 261 261 if err: 262 if re.match(" Error: Domain '.*' does not exist.", err):262 if re.match("machine '.*' is not on", err): 263 263 raise InvalidInput("action", "Power off", 264 264 "Machine is not on.") … … 270 270 out, err = remctl('control', machine.name, 'shutdown', err=True) 271 271 if err: 272 if re.match(" Error: Domain '.*' does not exist.", err):272 if re.match("machine '.*' is not on", err): 273 273 raise InvalidInput("action", "Shutdown", 274 274 "Machine is not on.")
Note: See TracChangeset
for help on using the changeset viewer.