Actions
Refactor #37194
closedUpdate Hard Coded rhsm url to use an env setting
Pull request:
Fixed in Releases:
Found in Releases:
Description
https://github.com/Katello/katello/blob/master/app/lib/katello/resources/candlepin/upstream_job.rb#L7 hard codes the rhsm url. This makes it impossible to run this operation in a stage environment without changing the url in this file.
Better alternative will be something along having an env variable like RHSM_REDHAT_API_URL. The user then set its value the service file similar to
# cat /etc/systemd/system/foreman.service.d/override.conf [Service] Environment=RHSM_REDHAT_API_URL=https://<stage rhsm>/subscription
and the default being the present default.
RH Cloud has a similar strategy to help with the qe env
Actions