Reviewed-by: ShaoHe Feng <shaohef(a)linux.vnet.ibm.com>
On 04/23/2014 03:20 PM, lvroyce(a)linux.vnet.ibm.com wrote:
From: Royce Lv <lvroyce(a)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(a)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(a)linux.vnet.ibm.com>
IBM Linux Technology Center