2
0
mirror of https://github.com/xcat2/confluent.git synced 2024-11-26 03:19:48 +00:00

Support current directory in repo path

This commit is contained in:
Jarrod Johnson 2020-08-07 08:26:42 -04:00
parent 86c0d79d73
commit d12272eccc

View File

@ -27,5 +27,8 @@ for sec in c.sections():
with open(reponame, 'w') as repout:
repout.write('[local-{0}]\n'.format(varname.lower()))
repout.write('name=Local install repository for {0}\n'.format(varname))
repopath = c[sec]['repository']
if repopath[0] = '.':
repopath = repopath[1:]
repout.write('baseurl=https://{}/confluent-public/os/{}/distribution/{}\n'.format(server, profile, c[sec]['repository']))
repout.write('enabled=1\n')