summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--cloudinit/DataSourceOVF.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/cloudinit/DataSourceOVF.py b/cloudinit/DataSourceOVF.py
index a126c8bd..a0c53c69 100644
--- a/cloudinit/DataSourceOVF.py
+++ b/cloudinit/DataSourceOVF.py
@@ -201,6 +201,15 @@ def transport_iso9660(require_iso=False):
if fullp in mounted or not cdmatch.match(dev) or os.path.isdir(fullp):
continue
+ fp = None
+ try:
+ fp = open(fullp, "rb")
+ fp.read(512)
+ fp.close()
+ except:
+ if fp: fp.close()
+ continue
+
if tmpd is None:
tmpd = tempfile.mkdtemp()
if dvnull is None: