listvms and the actual request. Solve the problem correctly by using a
non-conflicting error code to indicate an invalid command
svn path=/trunk/packages/sipb-xen-remote-server/; revision=1163
+sipb-xen-remote-server (0.10.2) unstable; urgency=low
+
+ * There's a race condition for if the VM gets powered off between the
+ listvms and the actual request. Solve the problem correctly by using a
+ non-conflicting error code to indicate an invalid command
+
+ -- Evan Broder <broder@mit.edu> Wed, 22 Oct 2008 00:46:38 -0400
+
sipb-xen-remote-server (0.10.1) unstable; urgency=low
* Make both list-host and listhost valid commands, and for parity with
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