From 920821c21649695280b843d7a306bfa57b8d598d Mon Sep 17 00:00:00 2001 From: sbertramrh <88339253+sbertramrh@users.noreply.github.com> Date: Thu, 2 Dec 2021 11:29:13 -0500 Subject: [PATCH] Create cmd.py (#44) Added quotes to allow TestRun.search() to correctly process the string for test run id when it contains spaces. Fixes: https://github.com/RedHatQE/pylero/issues/43 --- src/pylero/cli/cmd.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pylero/cli/cmd.py b/src/pylero/cli/cmd.py index a42c1ac..d3f8290 100644 --- a/src/pylero/cli/cmd.py +++ b/src/pylero/cli/cmd.py @@ -324,8 +324,8 @@ def update_run(self, is_template=False): run = run.strip() - query_ful = 'project.id:%s AND id:%s' % (TestRun.default_project, - run) + query_ful = 'project.id:%s AND id:\"%s\"' % (TestRun.default_project, + run) fields = ['query', 'created',