Initial capsule syncs of new repositories does not use https for syncing
Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1378158
Description of problem:
When syncing a repository for the first time it appears that http is used for syncing rather than https. Subsequent syncs will use https.
This only affect repositories that are exposed via http such as kickstart or custom repositories.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Create a custom repository
2. Tail /var/log/httpd/foreman_access.log
3. With a capsule associated to library, sync the capsule
You'll see requests for this repository made to the foreman_access.log instead of the foreman-ssl_access_ssl.log
No requests are made via http and foreman_access.log shows no requests