diff options
-rw-r--r-- | cloudinit/config/cc_apt_configure.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cloudinit/config/cc_apt_configure.py b/cloudinit/config/cc_apt_configure.py index 7121ec43..4f44e4af 100644 --- a/cloudinit/config/cc_apt_configure.py +++ b/cloudinit/config/cc_apt_configure.py @@ -85,7 +85,7 @@ def handle(name, cfg, cloud, log, _args): matchcfg = cfg.get('add_apt_repo_match', ADD_APT_REPO_MATCH) if matchcfg: - matcher = re.compile(matchcfg) + matcher = re.compile(matchcfg).search else: matcher = lambda f: False |