- Timestamp:
- Oct 24, 2008, 12:00:00 AM (16 years ago)
- Location:
- trunk/packages/invirt-remote-server
- Files:
-
- 2 moved
Legend:
- Unmodified
- Added
- Removed
-
trunk/packages/invirt-remote-server/files/usr/sbin/invirt-remote-listhost
r1175 r1176 10 10 def main(argv): 11 11 if len(argv) < 2: 12 print >>sys.stderr, "usage: sipb-xen-remote-listhost <machine>"12 print >>sys.stderr, "usage: invirt-remote-listhost <machine>" 13 13 return 2 14 14 machine_name = argv[1] 15 15 16 p = Popen(['/usr/sbin/ sipb-xen-remote-proxy-web', 'listvms'], stdout=PIPE)16 p = Popen(['/usr/sbin/invirt-remote-proxy-web', 'listvms'], stdout=PIPE) 17 17 output = p.communicate()[0] 18 18 if p.returncode != 0: 19 19 raise RuntimeError("Command '%s' returned non-zero exit status %d" 20 % (' sipb-xen-remote-proxy-web', p.returncode))20 % ('invirt-remote-proxy-web', p.returncode)) 21 21 vms = yaml.load(output, yaml.CSafeLoader) 22 22
Note: See TracChangeset
for help on using the changeset viewer.