[Kimchi-devel] [PATCH] Does not list non-bootable ISOs on template creation

Ramon Medeiros ramonn at linux.vnet.ibm.com
Thu May 21 14:29:32 UTC 2015


Signed-off-by: Ramon Medeiros <ramonn at linux.vnet.ibm.com>
---
 src/kimchi/model/storagevolumes.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/kimchi/model/storagevolumes.py b/src/kimchi/model/storagevolumes.py
index dc807e4..2081fd1 100644
--- a/src/kimchi/model/storagevolumes.py
+++ b/src/kimchi/model/storagevolumes.py
@@ -530,7 +530,7 @@ class IsoVolumesModel(object):
             for volume in volumes:
                 res = self.storagevolume.lookup(pool_name,
                                                 volume.decode("utf-8"))
-                if res['format'] == 'iso':
+                if res['format'] == 'iso' and res["bootable"] == True:
                     res['name'] = '%s' % volume
                     iso_volumes.append(res)
         return iso_volumes
-- 
2.1.0




More information about the Kimchi-devel mailing list