summaryrefslogtreecommitdiff
path: root/cloudinit/config/cc_apt_configure.py
diff options
context:
space:
mode:
authorChristian Ehrhardt <christian.ehrhardt@canonical.com>2016-06-06 15:18:59 +0200
committerChristian Ehrhardt <christian.ehrhardt@canonical.com>2016-06-06 15:18:59 +0200
commit71ea8d200da164df6f5e28d28aea424b57fd8f1f (patch)
treebd8fddb3b5b13fe2dd2ccc3ec791b7534dda00b3 /cloudinit/config/cc_apt_configure.py
parent9874eff179410d1cf48c7a02623c3b6bda545344 (diff)
downloadvyos-cloud-init-71ea8d200da164df6f5e28d28aea424b57fd8f1f.tar.gz
vyos-cloud-init-71ea8d200da164df6f5e28d28aea424b57fd8f1f.zip
rename fucntion to mirrorurl_to_apt_fileprefix to reflect what it actually does
Diffstat (limited to 'cloudinit/config/cc_apt_configure.py')
-rw-r--r--cloudinit/config/cc_apt_configure.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/cloudinit/config/cc_apt_configure.py b/cloudinit/config/cc_apt_configure.py
index 91a117f5..be6324a2 100644
--- a/cloudinit/config/cc_apt_configure.py
+++ b/cloudinit/config/cc_apt_configure.py
@@ -93,7 +93,7 @@ def handle(name, cfg, cloud, log, _args):
util.logexc(log, "Failed to run debconf-set-selections")
-def mirror2lists_fileprefix(mirror):
+def mirrorurl_to_apt_fileprefix(mirror):
string = mirror
# take off http:// or ftp://
if string.endswith("/"):
@@ -110,8 +110,8 @@ def rename_apt_lists(old_mirrors, new_mirrors, lists_d="/var/lib/apt/lists"):
nmirror = new_mirrors.get(name)
if not nmirror:
continue
- oprefix = os.path.join(lists_d, mirror2lists_fileprefix(omirror))
- nprefix = os.path.join(lists_d, mirror2lists_fileprefix(nmirror))
+ oprefix = os.path.join(lists_d, mirrorurl_to_apt_fileprefix(omirror))
+ nprefix = os.path.join(lists_d, mirrorurl_to_apt_fileprefix(nmirror))
if oprefix == nprefix:
continue
olen = len(oprefix)