X-Git-Url: http://xvm.mit.edu/gitweb/invirt/packages/invirt-web.git/blobdiff_plain/9f1b11fe7e9983a386990be531879cb5727457b5..ee2503b2d6b90c306f508ebd5b3484e2acf64964:/code/controls.py?ds=sidebyside diff --git a/code/controls.py b/code/controls.py index 9c43a41..b4740d4 100644 --- a/code/controls.py +++ b/code/controls.py @@ -97,7 +97,7 @@ def bootMachine(machine, cdtype): 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: