Red Hat Satellite engineering is moving the tracking of its product development work on Satellite to Red Hat Jira (issues.redhat.com). 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 rh-issues@redhat.com 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 "https://issues.redhat.com/browse/SAT-XXXX", 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 1575076 - Template import from git, always adds newline
Summary: Template import from git, always adds newline
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Provisioning Templates
Version: 6.3.0
Hardware: Unspecified
OS: Unspecified
unspecified
low
Target Milestone: 6.4.0
Assignee: Marek Hulan
QA Contact: Silvie Chlupova
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-05-04 17:08 UTC by Onkar
Modified: 2021-12-10 16:06 UTC (History)
7 users (show)

Fixed In Version: foreman-1.18.0.24-1
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-10-16 19:03:31 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Foreman Issue Tracker 24672 0 Normal Closed Template import from git, always adds newline 2020-06-02 08:19:17 UTC

Description Onkar 2018-05-04 17:08:47 UTC
Description of problem: Every time do an import of the templates, it adds a newline to certain scripts.


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


How reproducible:
Configure Template sync in the satellite. Then configure GitHub link.
Export templates. Made some changes in templates. Export templates in satellite.
Now every next import and export add in new line in template.




Steps to Reproduce:
1.
2.
3.

Actual results: New line getting added in templates.


Expected results: New lines should be added in templates.


Additional info:

Comment 5 Ondřej Pražák 2018-06-12 11:12:43 UTC
I could not reproduce with 6.4, it seems like this issue could be fixed as a part of previous changes targeted for 6.4. Could QE verify if this is still present on 6.4?

Comment 7 Marek Hulan 2018-08-21 14:52:02 UTC
This seems to happen only for specific template. The subject is misleading, this actually happens on export and only if template has "shebang", e.g. the bootdisk template.

it's a oneliner fix in foreman core. It would be reproducible via export/import API too

Comment 8 Marek Hulan 2018-08-21 14:53:16 UTC
Created redmine issue https://projects.theforeman.org/issues/24672 from this bug

Comment 9 Satellite Program 2018-08-21 16:14:51 UTC
Upstream bug assigned to mhulan

Comment 10 Satellite Program 2018-08-21 16:14:54 UTC
Upstream bug assigned to mhulan

Comment 14 Bryan Kearney 2018-10-16 19:03:31 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, and where to find the updated
files, follow the link below.

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

https://access.redhat.com/errata/RHSA-2018:2927


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