projects
/
invirt/packages/invirt-remote.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
sipb-xen -> invirt for remote-server
[invirt/packages/invirt-remote.git]
/
files
/
usr
/
sbin
/
invirt-remote-control
diff --git
a/files/usr/sbin/sipb-xen-remote-control
b/files/usr/sbin/invirt-remote-control
similarity index 82%
rename from
files/usr/sbin/sipb-xen-remote-control
rename to
files/usr/sbin/invirt-remote-control
index
6d30d71
..
b205760
100755
(executable)
--- a/
files/usr/sbin/sipb-xen-remote-control
+++ b/
files/usr/sbin/invirt-remote-control
@@
-9,16
+9,16
@@
import yaml
def main(argv):
if len(argv) < 3:
def main(argv):
if len(argv) < 3:
- print >>sys.stderr, "usage: sipb-xen-remote-control <machine> <command>"
+ print >>sys.stderr, "usage: invirt-remote-control <machine> <command>"
return 2
machine_name = argv[1]
command = argv[2]
return 2
machine_name = argv[1]
command = argv[2]
- p = Popen(['/usr/sbin/sipb-xen-remote-proxy-web', 'listvms'], stdout=PIPE)
+ p = Popen(['/usr/sbin/invirt-remote-proxy-web', 'listvms'], stdout=PIPE)
output = p.communicate()[0]
if p.returncode != 0:
raise RuntimeError("Command '%s' returned non-zero exit status %d"
output = p.communicate()[0]
if p.returncode != 0:
raise RuntimeError("Command '%s' returned non-zero exit status %d"
- % ('sipb-xen-remote-proxy-web', p.returncode))
+ % ('invirt-remote-proxy-web', p.returncode))
vms = yaml.load(output, yaml.CSafeLoader)
if machine_name not in vms:
vms = yaml.load(output, yaml.CSafeLoader)
if machine_name not in vms: