diff --git a/vm-placement.py b/vm-placement.py index 2d39e16..cb25186 100755 --- a/vm-placement.py +++ b/vm-placement.py @@ -65,7 +65,8 @@ for host, vms in hosts_to_vms.items(): hosts_ram_usage[host] = manager.host_used_ram(nova, host) -for host, vms in hosts_to_vms.items(): +for host in sorted(hosts_to_vms.keys()): + vms = hosts_to_vms[host] print '{0:24} {1:5d} / {2:5d} MHz {3:5d} / {4:5d} MB'. \ format(host, hosts_cpu_usage[host],