[Kimchi-devel] [PATCH] Fix error storage pool lookup usage in deep scan

lvroyce at linux.vnet.ibm.com lvroyce at linux.vnet.ibm.com
Wed Apr 23 07:20:16 UTC 2014


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:
-- 
1.8.3.2




More information about the Kimchi-devel mailing list