fix a different errortext-matching mismatch
authorGreg Price <price@mit.edu>
Mon, 21 Jul 2008 19:56:01 +0000 (15:56 -0400)
committerGreg Price <price@mit.edu>
Mon, 21 Jul 2008 19:56:01 +0000 (15:56 -0400)
Gee, looks like I should have examined this when I made the remote
server and changed all these error messages.

svn path=/trunk/packages/sipb-xen-www/; revision=695

code/controls.py

index 9c43a41..b4740d4 100644 (file)
@@ -97,7 +97,7 @@ def bootMachine(machine, cdtype):
     else:
         out, err = remctl('control', machine.name, 'create',
                           err=True)
     else:
         out, err = remctl('control', machine.name, 'create',
                           err=True)
-    if 'already exists' in out:
+    if 'already running' in err:
         raise InvalidInput('action', 'create',
                            'VM %s is already on' % machine.name)
     elif err:
         raise InvalidInput('action', 'create',
                            'VM %s is already on' % machine.name)
     elif err: