mirror of
https://github.com/retspen/webvirtcloud.git
synced 2026-05-26 15:13:33 +00:00
Capitalized iso suffixs not seen by cdrom. Make them case insensitive.
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user