Description of problem: Foreman templates are not being imported from a directory of a git repository. Version-Release number of selected component (if applicable): Satellite 6.4 snap 7.0 How reproducible: Always Steps to Reproduce: Using hammer or API, import templates from git specifying a git subdirectory. Actual results: The templates are not imported from git subdirectory. Expected results: The templates should be imported from git subdirectory. Additional info:
Hammer Command: # hammer import-templates --branch master --dirname testDir --repo ssh://git/jyejare/test_foremantemplates API Command: # curl -H "Accept: application/json" -H "Content-Type: application/json" -k -X POST -u user:passwd https://qeblade36.rhq.lab.eng.bos.redhat.com/api/v2/templates/import -d '{"verbose":"true", "associate": "new", "repo":"ssh://git/jyejare/test_foremantemplates", "dirname":"testDir", "branch":"master"}'
Created redmine issue http://projects.theforeman.org/issues/23894 from this bug
Upstream bug assigned to oprazak
Moving this bug to POST for triage into Satellite 6 since the upstream issue http://projects.theforeman.org/issues/23894 has been resolved.
Verified ! @ Satellite 6.4 snap 11 Steps: 1. Import templates from git sub directory. Behavior: The templates are being imported from git subdirectory. Tested from both API and CLI ends.
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