use get_cfg_option_bool for apt_mirror_search_dns

This commit is contained in:
Scott Moser 2012-08-03 14:53:15 -04:00
parent ac2512d004
commit 061f0cb1f4

View File

@ -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 = []