summaryrefslogtreecommitdiff
path: root/cloudinit/sources/DataSourceConfigDrive.py
diff options
context:
space:
mode:
authorScott Moser <smoser@ubuntu.com>2014-09-10 16:00:00 -0400
committerScott Moser <smoser@ubuntu.com>2014-09-10 16:00:00 -0400
commit44113217719ebee756325b40a5d14045ba8f3a3a (patch)
treeb8b57a2fe2a87d654dc869da642606f6fa8f948f /cloudinit/sources/DataSourceConfigDrive.py
parentc548fdf3201519c1c30c815ba9feec643b87e0bf (diff)
downloadvyos-cloud-init-44113217719ebee756325b40a5d14045ba8f3a3a.tar.gz
vyos-cloud-init-44113217719ebee756325b40a5d14045ba8f3a3a.zip
drop version= from readers
instead of taking a version that they should look for, the readers now just select the highest supported version. definitely a use case later for having version= but nothing is using it now.
Diffstat (limited to 'cloudinit/sources/DataSourceConfigDrive.py')
-rw-r--r--cloudinit/sources/DataSourceConfigDrive.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/cloudinit/sources/DataSourceConfigDrive.py b/cloudinit/sources/DataSourceConfigDrive.py
index b8c16361..a27d07fb 100644
--- a/cloudinit/sources/DataSourceConfigDrive.py
+++ b/cloudinit/sources/DataSourceConfigDrive.py
@@ -167,10 +167,10 @@ def get_ds_mode(cfgdrv_ver, ds_cfg=None, user=None):
return "net"
-def read_config_drive(source_dir, version=None):
+def read_config_drive(source_dir):
reader = openstack.ConfigDriveReader(source_dir)
finders = [
- (reader.read_v2, [], {'version': version}),
+ (reader.read_v2, [], {}),
(reader.read_v1, [], {}),
]
excps = []