Skip to content

Commit

Permalink
Update rhsm hostname (rhn > rhsm)
Browse files Browse the repository at this point in the history
  • Loading branch information
lpramuk committed Jun 12, 2018
1 parent 647db68 commit 616fc1e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions automation_tools/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2621,7 +2621,7 @@ def clean_rhsm():
print('Erasing existing Candlepin certs, if any.')
run('yum erase -y $(rpm -qa |grep katello-ca-consumer)', quiet=True)
print('Resetting rhsm.conf to point to cdn.')
run("sed -i -e 's/^hostname.*/hostname=subscription.rhn.redhat.com/' "
run("sed -i -e 's/^hostname.*/hostname=subscription.rhsm.redhat.com/' "
"/etc/rhsm/rhsm.conf")
run("sed -i -e 's|^prefix.*|prefix=/subscription|' /etc/rhsm/rhsm.conf")
run("sed -i -e 's|^baseurl.*|baseurl=https://cdn.redhat.com|' "
Expand Down Expand Up @@ -3104,7 +3104,7 @@ def download_manifest(url=None, consumer=None):
The following environment variables affect this command:
SM_URL
Subscription Manager URL (e.g. 'https://subscription.rhn.redhat.com')
Subscription Manager URL (e.g. 'https://subscription.rhsm.redhat.com')
CONSUMER
A consumer hash to be used for getting the manifest
RHN_USERNAME
Expand Down

0 comments on commit 616fc1e

Please sign in to comment.