Jerry Cai 368e8f71a1 Merge the get_available_resource() and get_host_stat()
For better report the host status, I would like to merge the code
for get_host_stats() and get_available_resource(). As most of them
are similar, merge together to easily manage the code.

Change-Id: I1900da06576d2f066c6154306f77f7c721e64cdf
Closes-bug: 1387089
2014-10-31 10:15:40 +08:00
..