Changeset 551
- Timestamp:
- Jun 1, 2008, 6:52:02 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/packages/sipb-xen-remctl-auto/files/usr/sbin/sipb-xen-listvms
r533 r551 5 5 sys.path.insert(0, '/usr/lib/xen-3.1-1/lib/python') 6 6 from xen.lowlevel.xs import xs 7 import yaml 7 8 8 9 trans = xs() … … 36 37 if __name__ == '__main__': 37 38 vms = live_vms() 38 if '--pickle' in sys.argv[1:]: 39 import cPickle 40 cPickle.dump(vms, sys.stdout, cPickle.HIGHEST_PROTOCOL) 41 else: 42 print vms 39 print yaml.safe_dump(vms, default_flow_style=False)
Note: See TracChangeset
for help on using the changeset viewer.