- 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-create
r1175 r1176 22 22 def main(argv): 23 23 if len(argv) < 3: 24 print >> sys.stderr, "usage: sipb-xen-remote-create <operation> <machine> [<other args...>]"24 print >> sys.stderr, "usage: invirt-remote-create <operation> <machine> [<other args...>]" 25 25 return 2 26 26 operation = argv[1] … … 38 38 return 1 39 39 40 p = Popen(['/usr/sbin/ sipb-xen-remote-proxy-web', 'listvms'], stdout=PIPE)40 p = Popen(['/usr/sbin/invirt-remote-proxy-web', 'listvms'], stdout=PIPE) 41 41 output = p.communicate()[0] 42 42 if p.returncode != 0: 43 43 raise RuntimeError("Command '%s' returned non-zero exit status %d" 44 % (' sipb-xen-remote-proxy-web', p.returncode))44 % ('invirt-remote-proxy-web', p.returncode)) 45 45 vms = yaml.load(output, yaml.CSafeLoader) 46 46
Note: See TracChangeset
for help on using the changeset viewer.