[Kimchi-devel] [PATCH] Fix error storage pool lookup usage in deep scan
Sheldon
shaohef at linux.vnet.ibm.com
Wed Apr 23 08:55:34 UTC 2014
Reviewed-by: ShaoHe Feng <shaohef at linux.vnet.ibm.com>
On 04/23/2014 03:20 PM, lvroyce at linux.vnet.ibm.com wrote:
> From: Royce Lv <lvroyce at linux.vnet.ibm.com>
>
> Wrong usage of storage pool lookup will result in
> deep scan ignore list appending failure,
> correct it so that deep scan ignore pool path will work.
>
> Signed-off-by: Royce Lv <lvroyce at linux.vnet.ibm.com>
> ---
> src/kimchi/model/storagepools.py | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/src/kimchi/model/storagepools.py b/src/kimchi/model/storagepools.py
> index ba24538..69cf6fc 100644
> --- a/src/kimchi/model/storagepools.py
> +++ b/src/kimchi/model/storagepools.py
> @@ -155,7 +155,7 @@ class StoragePoolsModel(object):
>
> for pool in self.get_list():
> try:
> - res = self.storagepool_lookup(pool)
> + res = StoragePoolModel(conn=self.conn, objstore=self.objstore).lookup(pool)
> if res['state'] == 'active':
> scan_params['ignore_list'].append(res['path'])
> except Exception, e:
--
Thanks and best regards!
Sheldon Feng(冯少合)<shaohef at linux.vnet.ibm.com>
IBM Linux Technology Center
More information about the Kimchi-devel
mailing list