Actions
Bug #35051
closedIn Global Registration, using another LANG like pt_BR.UTF-8 breaks the UUID
Status:
Closed
Priority:
Normal
Assignee:
-
Category:
Host registration
Target version:
-
Difficulty:
Triaged:
Yes
Description
The code below considers the LANG always as en_US:
~~
system identity: 605a0996-b0e8-411d-8691-795a1c0ea4bf
~~
~~~
- 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}')
~~
Actions