feat: add same multiple option
This commit is contained in:
parent
f2e3f37201
commit
2019eca6df
1 changed files with 8 additions and 3 deletions
|
@ -14,9 +14,14 @@ class GitlabRunner:
|
||||||
if v is False:
|
if v is False:
|
||||||
opts.append('--%s=false' % k)
|
opts.append('--%s=false' % k)
|
||||||
else:
|
else:
|
||||||
opts.append('--%s' % k)
|
if isinstance(v, list):
|
||||||
if v is not True:
|
for av in v:
|
||||||
opts.append(str(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',
|
subprocess.check_call(['gitlab-runner', 'register',
|
||||||
'--non-interactive',
|
'--non-interactive',
|
||||||
|
|
Loading…
Reference in a new issue