From 72d182e9794e33715ed6015644d8ccac136d90a9 Mon Sep 17 00:00:00 2001 From: Satellite QE <115476073+Satellite-QE@users.noreply.github.com> Date: Wed, 28 Feb 2024 10:31:34 -0500 Subject: [PATCH] [6.15.z] host package_list fix (#14211) --- robottelo/cli/hammer.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/robottelo/cli/hammer.py b/robottelo/cli/hammer.py index dcc2468ba7c..0471754002f 100644 --- a/robottelo/cli/hammer.py +++ b/robottelo/cli/hammer.py @@ -49,8 +49,9 @@ def parse_csv(output): # ignore warning about puppet and ostree deprecation output.replace('Puppet and OSTree will no longer be supported in Katello 3.16\n', '') is_rex = True if 'Job invocation' in output else False + is_pkg_list = True if 'Nvra' in output else False # Validate if the output is eligible for CSV conversions else return as it is - if not is_csv(output) and not is_rex: + if not is_csv(output) and not is_rex and not is_pkg_list: return output output = output.splitlines()[0:2] if is_rex else output.splitlines() reader = csv.reader(output)