X-Git-Url: http://xvm.mit.edu/gitweb/invirt/packages/invirt-remote.git/blobdiff_plain/072de5166748a83818cb7acff06cdb903a060b86..d7f33e5a8eba8e45cb5ad588a644a5482e82f7d4:/files/usr/sbin/sipb-xen-remote-control diff --git a/files/usr/sbin/sipb-xen-remote-control b/files/usr/sbin/sipb-xen-remote-control index 3ee3e70..6d30d71 100755 --- a/files/usr/sbin/sipb-xen-remote-control +++ b/files/usr/sbin/sipb-xen-remote-control @@ -30,8 +30,11 @@ def main(argv): stdout=PIPE, stderr=PIPE) (out, err) = p.communicate() if p.returncode == 1: - print >>sys.stderr, "ERROR: invalid command" + print >>sys.stderr, "machine '%s' is not on" % machine_name return 1 + elif p.returncode == 34: + print >>sys.stderr, "ERROR: invalid command" + return 34 sys.stderr.write(err) sys.stdout.write(out) return p.returncode