Project

General

Profile

Actions

Bug #35051

closed

In Global Registration, using another LANG like pt_BR.UTF-8 breaks the UUID

Added by Aldrey Galindo about 2 years ago. Updated almost 2 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
Host registration
Target version:
-
Fixed in Releases:
Found in Releases:

Description

The code below considers the LANG always as en_US:
~~
system identity: 605a0996-b0e8-411d-8691-795a1c0ea4bf
~~

If I use the LANG 'pt_BR.UTF-8', it will break the UUID:
~~~
  1. LANG=pt_BR.UTF-8 subscription-manager identity | head -1
    identidade do sistema: 605a0996-b0e8-411d-8691-795a1c0ea4bf
    ~~~

The current code:
~~
UUID=$(subscription-manager identity | head -1 | awk '{print $3}')
~~

Then, the UUID will be 'sistema:'.

I believe if we change the code, it will avoid this kind of issue:
~~
UUID=$(subscription-manager identity | head -1 | awk -F':' '{gsub("^ ","",$2); print $2}')
~~


Related issues 1 (0 open1 closed)

Related to Foreman - Feature #35279: SLES support for host registrationClosedBernhard SuttnerActions
Actions

Also available in: Atom PDF