From 072de5166748a83818cb7acff06cdb903a060b86 Mon Sep 17 00:00:00 2001 From: Evan Broder Date: Wed, 22 Oct 2008 00:33:19 -0400 Subject: [PATCH] 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 --- debian/changelog | 7 +++++++ files/usr/sbin/sipb-xen-remote-control | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) 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) -- 1.7.9.5