X-Git-Url: http://xvm.mit.edu/gitweb/invirt/packages/invirt-remote.git/blobdiff_plain/227cb65ae3d4b0fd6636700595df6f00b18d4f37..8ee0e3d4e4277a7d85f0d7470e798f76ff54d8be:/files/usr/sbin/invirt-remote-create diff --git a/files/usr/sbin/invirt-remote-create b/files/usr/sbin/invirt-remote-create index db1b676..0a95d35 100755 --- a/files/usr/sbin/invirt-remote-create +++ b/files/usr/sbin/invirt-remote-create @@ -17,7 +17,7 @@ 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['free_memory']), s) for (s, o) in results)[1] + return max((int(o['max_free_memory']), s) for (s, o) in results)[1] def main(argv): if len(argv) < 3: