[Kimchi-devel] [PATCH] model.host: avoid redundant libvirt lookupByName API invocation

Crístian Viana vianac at linux.vnet.ibm.com
Thu May 29 13:31:59 UTC 2014


Reviewed-by: Crístian Viana <vianac at 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 at linux.vnet.ibm.com>




More information about the Kimchi-devel mailing list