Red Hat Satellite engineering is moving the tracking of its product development work on Satellite to Red Hat Jira ( If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "Satellite project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs will be migrated starting at the end of May. If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "Satellite project" in Red Hat Jira (issue links are of type "", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1805654 - Ansible Inventory reports, print multiple blank line in the output
Summary: Ansible Inventory reports, print multiple blank line in the output
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Reporting
Version: 6.7.0
Hardware: All
OS: All
Target Milestone: 6.10.0
Assignee: satellite6-bugs
QA Contact: Lukáš Hellebrandt
Depends On:
TreeView+ depends on / blocked
Reported: 2020-02-21 10:14 UTC by Ranjan Kumar
Modified: 2021-11-16 14:09 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Last Closed: 2021-11-16 14:09:07 UTC
Target Upstream Version:

Attachments (Terms of Use)

System ID Private Priority Status Summary Last Updated
Foreman Issue Tracker 29111 0 Low New Generating Ansible Inventory includes newlines in response 2021-01-28 10:11:52 UTC
Red Hat Product Errata RHSA-2021:4702 0 None None None 2021-11-16 14:09:18 UTC

Description Ranjan Kumar 2020-02-21 10:14:49 UTC
Description of problem:
Ansible Inventory reports, print multiple blank lines in the output

Version-Release number of selected component (if applicable): 6.7

How reproducible: Always

[root@satellite ~]# hammer report-template generate --name 'Ansible Inventory' --report-format json

[{"id":1,"name":"","organization":"Redhat","location":"Pune","host_group":null,"host_collections":["hc","vvvv"],"ipv4":"","subnet":null,"smart_proxies":[""]},{"id":12,"name":"","organization":"Redhat","location":"Pune","host_group":null,"host_collections":["hc","vvvv"],"ipv4":null,"subnet":null,"smart_proxies":[""]},{"id":17,"name":"","organization":"Redhat","location":"Pune","host_group":"satellite","host_collections":["hc","vvvv"],"ipv4":"","subnet":"","smart_proxies":[""]},{"id":21,"name":"","organization":"Redhat","location":"Pune","host_group":"satellite","host_collections":["hc","vvvv"],"ipv4":null,"subnet":"","smart_proxies":[""]},{"id":31,"name":"","organization":"Redhat","location":"Default Location","host_group":null,"host_collections":["hc","vvvv"],"ipv4":null,"subnet":null,"smart_proxies":[]},{"id":34,"name":"","organization":"Redhat","location":"Default Location","host_group":"satellite","host_collections":["hc","vvvv"],"ipv4":"","subnet":"","smart_proxies":[""]},{"id":35,"name":"","organization":"Redhat","location":"Pune","host_group":"satellite","host_collections":["hc","vvvv"],"ipv4":"","subnet":"","smart_proxies":[""]},{"id":36,"name":"","organization":"Redhat","location":"Pune","host_group":"satellite","host_collections":["hc","vvvv"],"ipv4":"","subnet":"","smart_proxies":[""]},{"id":41,"name":"","organization":"Redhat","location":"Pune","host_group":"satellite","host_collections":["hc","vvvv"],"ipv4":"","subnet":"","smart_proxies":[""]},{"id":42,"name":"","organization":"Redhat","location":"Pune","host_group":"satellite","host_collections":["hc","vvvv"],"ipv4":"","subnet":"","smart_proxies":[""]}]

It should not print blank lines in the output

Comment 3 Ondřej Pražák 2020-02-21 10:54:14 UTC
Created redmine issue from this bug

Comment 4 Anand Agrawal 2021-01-28 10:35:05 UTC
(In reply to Ondřej Pražák from comment #3)
> Created redmine issue from this
> bug

Can you pleas check the PR


Comment 5 Ondrej 2021-01-28 10:47:59 UTC
wrong Ondrej

Comment 7 Bryan Kearney 2021-02-02 15:44:14 UTC
Moving this bug to POST for triage into Satellite since the upstream issue has been resolved.

Comment 8 Lukáš Hellebrandt 2021-07-09 13:09:58 UTC
Verified with Sat 6.10.0 snap 5.0.

Report now doesn't contain bogus empty lines in {CSV,JSON}x{WebUI,Hammer}-generated reports:

# hammer report-template generate --name 'Ansible - Ansible Inventory' --report-format json
[{"id":1,"name":"<FQDN>","organization":"Default Organization","location":"Default Location","host_group":null,"host_collections":[],"ipv4":"<IP>","subnet":null,"smart_proxies":["<FQDN>"]},{"id":2,"name":"<FQDN>","organization":"Default Organization","location":"Default Location","host_group":null,"host_collections":[],"ipv4":"<IP>","subnet":null,"smart_proxies":["<FQDN>"]},{"id":3,"name":"<FQDN>","organization":"Default Organization","location":"Default Location","host_group":"testgrp","host_collections":[],"ipv4":"<IP>","subnet":null,"smart_proxies":["<FQDN>"]}]

Comment 12 errata-xmlrpc 2021-11-16 14:09:07 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (Moderate: Satellite 6.10 Release), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

Note You need to log in before you can comment on or make changes to this bug.