Skip to content

Commit

Permalink
host package_list fix
Browse files Browse the repository at this point in the history
  • Loading branch information
pondrejk committed Feb 28, 2024
1 parent 89c80a3 commit c97bae3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion robottelo/cli/hammer.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 or is_pkg_list):
return output
output = output.splitlines()[0:2] if is_rex else output.splitlines()
reader = csv.reader(output)
Expand Down

0 comments on commit c97bae3

Please sign in to comment.