import msger
import kickstart
-from .utils import misc, runner, errors
+from .utils import misc, runner, proxy, errors
DEFAULT_GSITECONF = '/etc/mic/mic.conf'
"compress_disk_image": None,
"distro_name": "Default Distribution",
"name_prefix": None,
+ "proxy": None,
+ "no_proxy": None,
},
'chroot': {},
'convert': {},
if section in self.DEFAULTS.keys():
getattr(self, section).update(dict(parser.items(section)))
+ proxy.set_proxies(self.create['proxy'], self.create['no_proxy'])
+
def _selinux_check(self, arch, ks):
"""If a user needs to use btrfs or creates ARM image,
selinux must be disabled at start.
import rpm
from mic import msger
from .errors import CreatorError
+from .proxy import get_proxy_for
import runner
def myurlgrab(url, filename, proxies, progress_obj = None):
proxy_username = repo.proxy_username
proxy_password = repo.proxy_password
+ if not proxy:
+ proxy = get_proxy_for(repo.baseurl[0])
+
handlers = []
auth_handler = u2.HTTPBasicAuthHandler(u2.HTTPPasswordMgrWithDefaultRealm())
u2opener = None