projects
/
invirt/packages/invirt-remote.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b28ef7d
)
Modified invirt-remote-create to use new availability remctl.
author
Peter Iannucci
<iannucci@mit.edu>
Fri, 13 Feb 2009 03:45:59 +0000
(22:45 -0500)
committer
Peter Iannucci
<iannucci@mit.edu>
Fri, 13 Feb 2009 03:45:59 +0000
(22:45 -0500)
svn path=/trunk/packages/invirt-remote/; revision=2105
server/usr/sbin/invirt-remote-create
patch
|
blob
|
history
diff --git
a/server/usr/sbin/invirt-remote-create
b/server/usr/sbin/invirt-remote-create
index
0a95d35
..
714d846
100755
(executable)
--- 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: