Reviewed-by: Crístian Viana <vianac(a)linux.vnet.ibm.com>
On 28-05-2014 06:52, Zhou Zheng Sheng wrote:
In HostModel._get_vms_list_by_state(), it gets a list of domain
objects
and extracts the names, then it traverses the names and calls
lookupByName(name) to get domain objects. This is redundant because it
has a list of domain object already.
This patch fixes the problem.
Signed-off-by: Zhou Zheng Sheng <zhshzhou(a)linux.vnet.ibm.com>