diff options
author | Scott Moser <smoser@ubuntu.com> | 2013-06-07 13:30:03 -0400 |
---|---|---|
committer | Scott Moser <smoser@ubuntu.com> | 2013-06-07 13:30:03 -0400 |
commit | 233761a7fe4a995fbe0c8f65f512172a2b64090c (patch) | |
tree | be8eca0c7e555c71ca5473471dc2ebb62382edbc /cloudinit | |
parent | e98380cb087a562a2cda7e13a99ce0bb0333b51b (diff) | |
download | vyos-cloud-init-233761a7fe4a995fbe0c8f65f512172a2b64090c.tar.gz vyos-cloud-init-233761a7fe4a995fbe0c8f65f512172a2b64090c.zip |
DataSourceOVF: small fix for iso9660 transport
This is not really a problem, because nothing would call transport_iso9660
with 'require_iso' as False, but if it did, then we would have still
required iso9660 filesystem on the mount.
Diffstat (limited to 'cloudinit')
-rw-r--r-- | cloudinit/sources/DataSourceOVF.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/cloudinit/sources/DataSourceOVF.py b/cloudinit/sources/DataSourceOVF.py index 0530c4b7..77b43e17 100644 --- a/cloudinit/sources/DataSourceOVF.py +++ b/cloudinit/sources/DataSourceOVF.py @@ -194,6 +194,11 @@ def transport_iso9660(require_iso=True): if contents is not False: return (contents, dev, fname) + if require_iso: + mtype = "iso9660" + else: + mtype = None + devs = os.listdir("/dev/") devs.sort() for dev in devs: @@ -211,7 +216,7 @@ def transport_iso9660(require_iso=True): try: (fname, contents) = util.mount_cb(fullp, - get_ovf_env, mtype="iso9660") + get_ovf_env, mtype=mtype) except util.MountFailedError: LOG.debug("%s not mountable as iso9660" % fullp) continue |