diff options
author | Joshua Harlow <harlowja@yahoo-inc.com> | 2012-06-22 20:53:35 -0700 |
---|---|---|
committer | Joshua Harlow <harlowja@yahoo-inc.com> | 2012-06-22 20:53:35 -0700 |
commit | aff1783ff4c6b5afdbf42d474f3ab270b64b3d14 (patch) | |
tree | 37f36c1cdcda208a89a6de6299a49f44c8190c1e /cloudinit | |
parent | ae092a1b559ece1964885535b75daa9f0b6a9a24 (diff) | |
download | vyos-cloud-init-aff1783ff4c6b5afdbf42d474f3ab270b64b3d14.tar.gz vyos-cloud-init-aff1783ff4c6b5afdbf42d474f3ab270b64b3d14.zip |
Use a module level constant for the filename
Diffstat (limited to 'cloudinit')
-rw-r--r-- | cloudinit/config/cc_apt_update_upgrade.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/cloudinit/config/cc_apt_update_upgrade.py b/cloudinit/config/cc_apt_update_upgrade.py index f5b4b58f..6719da52 100644 --- a/cloudinit/config/cc_apt_update_upgrade.py +++ b/cloudinit/config/cc_apt_update_upgrade.py @@ -27,6 +27,7 @@ from cloudinit import util distros = ['ubuntu', 'debian'] PROXY_TPL = "Acquire::HTTP::Proxy \"%s\";\n" +PROXY_FN = "/etc/apt/apt.conf.d/95cloud-init-proxy" def handle(_name, cfg, cloud, log, _args): @@ -48,7 +49,7 @@ def handle(_name, cfg, cloud, log, _args): # Set up any apt proxy proxy = cfg.get("apt_proxy", None) - proxy_filename = "/etc/apt/apt.conf.d/95cloud-init-proxy" + proxy_filename = PROXY_FN if proxy: try: # See man 'apt.conf' |