def choose_host():
# Query each of the hosts.
# XXX will the output of 'xm info' always be parseable YAML?
- results = bcast('info')
- return max((int(o['max_free_memory']), s) for (s, o) in results)[1]
+ results = bcast('availability')
+ return max((int(o), s) for (s, o) in results)[1]
def main(argv):
if len(argv) < 3: