diff options
author | Scott Moser <smoser@ubuntu.com> | 2012-08-03 14:53:15 -0400 |
---|---|---|
committer | Scott Moser <smoser@ubuntu.com> | 2012-08-03 14:53:15 -0400 |
commit | a7ab005ae9270b56aeebea16b6913c9d76e946ea (patch) | |
tree | 8e97dedef548635c2dc594149dcfbd6343c5e77c /cloudinit/config | |
parent | dd6b8d380c195656e856ea907d956f7963d4543e (diff) | |
download | vyos-cloud-init-a7ab005ae9270b56aeebea16b6913c9d76e946ea.tar.gz vyos-cloud-init-a7ab005ae9270b56aeebea16b6913c9d76e946ea.zip |
use get_cfg_option_bool for apt_mirror_search_dns
Diffstat (limited to 'cloudinit/config')
-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 76ecfb42..1bffa47d 100644 --- a/cloudinit/config/cc_apt_update_upgrade.py +++ b/cloudinit/config/cc_apt_update_upgrade.py @@ -255,7 +255,8 @@ def find_apt_mirror(cloud, cfg): if mydom: doms.append(".%s" % mydom) - if not mirror and cfg.get(cfg, "apt_mirror_search_dns", False): + if (not mirror and + util.get_cfg_option_bool(cfg, "apt_mirror_search_dns", False)): doms.extend((".localdomain", "",)) mirror_list = [] |