Skip to content

Commit

Permalink
Fixes #31645 - Missing host UUID in global registration template (the…
Browse files Browse the repository at this point in the history
…foreman#8252)

Missing UUID for RHEL & CentOS systems caused issues during
registration through the smart proxy.
  • Loading branch information
stejskalleos authored and stefanlasiewski committed Jan 20, 2021
1 parent cea631a commit ba57b50
Showing 1 changed file with 2 additions and 1 deletion.
Expand Up @@ -58,7 +58,8 @@ echo "#"
if [ x$ID = xrhel ] || [ x$ID = xcentos ]; then
register_katello_host(){
UUID=$(subscription-manager identity | head -1 | awk '{print $3}')
curl --cacert $SSL_CA_CERT --request POST "<%= @registration_url %>?uuid=$UUID" \
curl --cacert $SSL_CA_CERT --request POST "<%= @registration_url %>" \
--data "uuid=$UUID" \
<%= headers.join(' ') %> \
<%= " --data 'host[organization_id]=#{@organization.id}' \\\n" if @organization -%>
<%= " --data 'host[location_id]=#{@location.id}' \\\n" if @location -%>
Expand Down

0 comments on commit ba57b50

Please sign in to comment.