There's a race condition for if the VM gets powered off between the
[invirt/packages/invirt-remote.git] / files / usr / sbin / sipb-xen-remote-control
index e61cb72..6d30d71 100755 (executable)
@@ -32,6 +32,9 @@ def main(argv):
     if p.returncode == 1:
         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