feat: add same multiple option

This commit is contained in:
Adrien Waksberg 2022-05-11 11:04:55 +02:00
parent f2e3f37201
commit 2019eca6df

View file

@ -14,9 +14,14 @@ class GitlabRunner:
if v is False:
opts.append('--%s=false' % k)
else:
opts.append('--%s' % k)
if v is not True:
opts.append(str(v))
if isinstance(v, list):
for av in v:
opts.append('--%s' % k)
opts.append(str(av))
else:
opts.append('--%s' % k)
if v is not True:
opts.append(str(v))
subprocess.check_call(['gitlab-runner', 'register',
'--non-interactive',