From: Evan Broder Date: Wed, 22 Oct 2008 04:33:19 +0000 (-0400) Subject: In response to Nelson's bug report, actually give a useful error if a X-Git-Tag: sipb-xen-remote-server/0.10^0 X-Git-Url: http://xvm.mit.edu/gitweb/invirt/packages/invirt-remote.git/commitdiff_plain/072de5166748a83818cb7acff06cdb903a060b86?hp=c7a4b1ed77b6091d7a9bf27c59e098bdff84474e In response to Nelson's bug report, actually give a useful error if a machine is on, but the command is invalid svn path=/trunk/packages/sipb-xen-remote-server/; revision=1159 --- diff --git a/debian/changelog b/debian/changelog index ee59165..910bbfe 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,10 @@ +sipb-xen-remote-server (0.10) unstable; urgency=low + + * If a command is invalid, but the machine's on, give an actually useful + error message + + -- Evan Broder Wed, 22 Oct 2008 00:29:50 -0400 + sipb-xen-remote-server (0.9.2) unstable; urgency=low * Expose an interface to the autoinstaller over remctl diff --git a/files/usr/sbin/sipb-xen-remote-control b/files/usr/sbin/sipb-xen-remote-control index e61cb72..3ee3e70 100755 --- a/files/usr/sbin/sipb-xen-remote-control +++ b/files/usr/sbin/sipb-xen-remote-control @@ -30,7 +30,7 @@ def main(argv): stdout=PIPE, stderr=PIPE) (out, err) = p.communicate() if p.returncode == 1: - print >>sys.stderr, "machine '%s' is not on" % machine_name + print >>sys.stderr, "ERROR: invalid command" return 1 sys.stderr.write(err) sys.stdout.write(out)