4 Collates the results of listvms from multiple VM servers. Part of the xvm
8 from invirt.remote import bcast
13 # Query each of the hosts.
14 results = filter(lambda (_, x): x is not None, bcast('listvms'))
16 # Merge the results and print.
18 for server, result in results:
19 for data in result.itervalues():
23 print yaml.dump(merged, Dumper=yaml.CSafeDumper, default_flow_style=False)
25 if __name__ == '__main__':
26 sys.exit(main(sys.argv))