diff options
Diffstat (limited to 'cloudinit/config/cc_apt_configure.py')
-rw-r--r-- | cloudinit/config/cc_apt_configure.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cloudinit/config/cc_apt_configure.py b/cloudinit/config/cc_apt_configure.py index 4f44e4af..5819897d 100644 --- a/cloudinit/config/cc_apt_configure.py +++ b/cloudinit/config/cc_apt_configure.py @@ -178,6 +178,8 @@ def add_sources(srclist, template_params=None, aa_repo_match=None): continue source = ent['source'] + source = templater.render_string(source, template_params) + if aa_repo_match(source): try: util.subp(["add-apt-repository", source]) @@ -185,8 +187,6 @@ def add_sources(srclist, template_params=None, aa_repo_match=None): errorlist.append([source, "add-apt-repository failed"]) continue - source = templater.render_string(source, template_params) - if 'filename' not in ent: ent['filename'] = 'cloud_config_sources.list' |