From: Greg Price Date: Mon, 21 Jul 2008 19:45:54 +0000 (-0400) Subject: update to match current error messages X-Git-Tag: sipb-xen-www/3.6~11 X-Git-Url: http://xvm.mit.edu/gitweb/invirt/packages/invirt-web.git/commitdiff_plain/591f41d7cd68b2f52a756bc87f577a88df8a34ae?ds=sidebyside update to match current error messages svn path=/trunk/packages/sipb-xen-www/; revision=692 --- diff --git a/code/controls.py b/code/controls.py index b946666..cd2d926 100644 --- a/code/controls.py +++ b/code/controls.py @@ -242,7 +242,7 @@ def commandResult(username, state, fields): out, err = remctl('control', machine.name, 'reboot', err=True) if err: - if re.match("Error: Domain '.*' does not exist.", err): + if re.match("machine '.*' is not on", err): raise InvalidInput("action", "reboot", "Machine is not on") else: