From c451ba05bfdfd2383695d80570c2f9e38e8e1d60 Mon Sep 17 00:00:00 2001 From: Eduardo Olivares Date: Tue, 3 Jun 2025 18:13:54 +0200 Subject: [PATCH] Convert to str the elements from the pod `args` list When tobiko starts a pod to run background tests from it, all the elements from the `args` list have to be converted to strings. For example, when `interval` is configured to a certain integer value, that value has to be converted to string. Change-Id: Ib2c7ec05b06965a72a2d8ff876b4af7684e96edb --- tobiko/podified/_openshift.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tobiko/podified/_openshift.py b/tobiko/podified/_openshift.py index 9dead720b..a4cfd16ae 100644 --- a/tobiko/podified/_openshift.py +++ b/tobiko/podified/_openshift.py @@ -391,7 +391,9 @@ def _start_pod(cmd, args, pod_name, pod_image): "name": pod_name, "image": pod_image, "command": cmd, - "args": args, + # All items from args have to be converted to + # strings, otherwise the pod creation may fail + "args": [str(arg) for arg in args], }], "restartPolicy": "Never" }