[Kimchi-devel] [PATCH] [Kimchi] Fix for the kimchi #1102

Lucio Correia luciojhc at linux.vnet.ibm.com
Mon Jan 30 12:40:23 UTC 2017


On 30/01/2017 09:36, jkatta at linux.vnet.ibm.com wrote:
> From: Jayavardhan Katta <jkatta at linux.vnet.ibm.com>
>
> Fix given to the kimchi plugin to avoid multiple continuos error message to the log
> in case of VMs created outside of WoK.
>
> Signed-off-by: Jayavardhan Katta <jkatta at linux.vnet.ibm.com>
> ---
>  model/vms.py | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/model/vms.py b/model/vms.py
> index 7729af0..895acd3 100644
> --- a/model/vms.py
> +++ b/model/vms.py
> @@ -1300,7 +1300,7 @@ class VMModel(object):
>
>          with self.objstore as session:
>              try:
> -                extra_info = session.get('vm', dom.UUIDString())
> +                extra_info = session.get('vm', dom.UUIDString(), False)
Following my review on wok patch, this should be True for ignoring missing.


>              except NotFoundError:
>                  extra_info = {}
>          icon = extra_info.get('icon')
>


-- 
Lucio Correia



More information about the Kimchi-devel mailing list