Allow setting int arguments for pungi-buildinstall plugin.

Signed-off-by: Jan Kaluza <jkaluza@redhat.com>
This commit is contained in:
Jan Kaluza 2020-10-28 13:19:55 +01:00 committed by lsedlar
parent d1eac95cda
commit 609a555597

View File

@ -195,6 +195,8 @@ class KojiWrapper(object):
if v:
if isinstance(v, bool):
cmd.append(k)
elif isinstance(v, int):
cmd.append("%s=%d" % (k, v))
else:
for arg in force_list(v):
cmd.append(shlex_quote("%s=%s" % (k, arg)))
@ -233,6 +235,8 @@ class KojiWrapper(object):
if v:
if isinstance(v, bool):
cmd.append(k)
elif isinstance(v, int):
cmd.append("%s=%d" % (k, v))
else:
for arg in force_list(v):
cmd.append(shlex_quote("%s=%s" % (k, arg)))