name = ksname.replace('.ks', '')
if download_host:
# replace host name
- kickstart = re.sub('^(repo .*--baseurl=)([^:]+://[^/]+)(/.*)',
- '\\1%s\\3' % download_host, kickstart,
+ kickstart = re.sub('^(repo .*--baseurl=[^:]+://)[^/]+(/.*)',
+ '\\1%s\\2' % download_host, kickstart,
count=1, flags=re.MULTILINE)
- # kickstart = re.sub('^(repo .*--baseurl=[^:]+://)[^/]+(/.*)',
- # '\\1%s\\2' % download_host, kickstart,
- # count=1, flags=re.MULTILINE)
data = {'name': name,
'kickstart': kickstart,
'buildid': build_id,