[Kimchi-devel] [PATCH] Fix import path based on new plugin structure

Paulo Ricardo Paz Vital pvital at linux.vnet.ibm.com
Thu Oct 15 13:10:35 UTC 2015


Reviewed-By: Paulo Vital <pvital at linux.vnet.ibm.com>

On Wed, 2015-10-14 at 16:34 -0300, Aline Manera wrote:
> Signed-off-by: Aline Manera <alinefm at linux.vnet.ibm.com>
> ---
>  src/wok/plugins/kimchi/model/templates.py | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/src/wok/plugins/kimchi/model/templates.py
> b/src/wok/plugins/kimchi/model/templates.py
> index b6fb84e..5c1b0c0 100644
> --- a/src/wok/plugins/kimchi/model/templates.py
> +++ b/src/wok/plugins/kimchi/model/templates.py
> @@ -123,8 +123,8 @@ class TemplatesModel(object):
>              if not tmp_volumes:
>                  raise InvalidParameter("KCHTMPL0018E")
> 
> -            storagevolumes =
> __import__("kimchi.model.storagevolumes",
> -                                        fromlist=[''])
> +            storagevolumes = __import__(
> +                "wok.plugins.kimchi.model.storagevolumes",
> fromlist=[''])
>              pool_volumes = storagevolumes.StorageVolumesModel(
>                  **kwargs).get_list(pool_name)
>              vols = set(tmp_volumes) - set(pool_volumes)




More information about the Kimchi-devel mailing list