From a0324ac60eee9218962d26f3c51d9e391192a4ab Mon Sep 17 00:00:00 2001 From: catborise Date: Thu, 24 Oct 2019 13:26:58 +0300 Subject: [PATCH] Capitalized iso suffixs not seen by cdrom. Make them case insensitive. --- vrtManager/create.py | 2 +- vrtManager/instance.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/vrtManager/create.py b/vrtManager/create.py index 5b60dee..671de97 100644 --- a/vrtManager/create.py +++ b/vrtManager/create.py @@ -38,7 +38,7 @@ class wvmCreate(wvmConnect): except: pass for img in stg.listVolumes(): - if img.endswith('.iso'): + if img.lower().endswith('.iso'): pass else: images.append(img) diff --git a/vrtManager/instance.py b/vrtManager/instance.py index c18e368..6c1cfec 100644 --- a/vrtManager/instance.py +++ b/vrtManager/instance.py @@ -830,7 +830,7 @@ class wvmInstance(wvmConnect): except: pass for img in stg.listVolumes(): - if img.endswith('.iso'): + if img.lower().endswith('.iso'): iso.append(img) return iso