summaryrefslogtreecommitdiff
path: root/cloudinit/config/cc_apt_configure.py
diff options
context:
space:
mode:
authorChristian Ehrhardt <christian.ehrhardt@canonical.com>2016-05-23 15:06:48 +0200
committerChristian Ehrhardt <christian.ehrhardt@canonical.com>2016-05-23 15:06:48 +0200
commit4ed5251d17ee7a44ce12d38d9b3d4fa554279419 (patch)
treec930d1fbfe9f211558be1eced0a7be7afe0b5bb2 /cloudinit/config/cc_apt_configure.py
parent72ff44b4517eacb4f525e1bf7db6787607ff306a (diff)
downloadvyos-cloud-init-4ed5251d17ee7a44ce12d38d9b3d4fa554279419.tar.gz
vyos-cloud-init-4ed5251d17ee7a44ce12d38d9b3d4fa554279419.zip
fix issue with dictionary style apt_sources handling filenames
Diffstat (limited to 'cloudinit/config/cc_apt_configure.py')
-rw-r--r--cloudinit/config/cc_apt_configure.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/cloudinit/config/cc_apt_configure.py b/cloudinit/config/cc_apt_configure.py
index 327b543e..a25d6af1 100644
--- a/cloudinit/config/cc_apt_configure.py
+++ b/cloudinit/config/cc_apt_configure.py
@@ -241,7 +241,7 @@ def add_sources(srclist, template_params=None, aa_repo_match=None):
for filename in srcdict:
ent = srcdict[filename]
if 'filename' not in ent:
- ent[filename] = filename
+ ent['filename'] = filename
# keys can be added without specifying a source
try: