From 1e5aac7e0d73433d65b17b5345a03deb822b43cc Mon Sep 17 00:00:00 2001 From: Peter Iannucci Date: Thu, 12 Feb 2009 22:45:59 -0500 Subject: [PATCH] Modified invirt-remote-create to use new availability remctl. svn path=/trunk/packages/invirt-remote/; revision=2105 --- server/usr/sbin/invirt-remote-create | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/usr/sbin/invirt-remote-create b/server/usr/sbin/invirt-remote-create index 0a95d35..714d846 100755 --- a/server/usr/sbin/invirt-remote-create +++ b/server/usr/sbin/invirt-remote-create @@ -16,8 +16,8 @@ import yaml 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: -- 1.7.9.5