From a7ab005ae9270b56aeebea16b6913c9d76e946ea Mon Sep 17 00:00:00 2001 From: Scott Moser Date: Fri, 3 Aug 2012 14:53:15 -0400 Subject: use get_cfg_option_bool for apt_mirror_search_dns --- cloudinit/config/cc_apt_update_upgrade.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'cloudinit') 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 = [] -- cgit v1.2.3