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}')
~~
Updated by The Foreman Bot over 2 years ago
- Status changed from New to Ready For Testing
- Pull request https://github.com/theforeman/foreman/pull/9261 added
Updated by The Foreman Bot over 2 years ago
- Pull request https://github.com/theforeman/foreman/pull/9347 added
Updated by Ewoud Kohl van Wijngaarden about 2 years ago
- Related to Feature #35279: SLES support for host registration added
Updated by Ewoud Kohl van Wijngaarden about 2 years ago
- Category set to Host registration
- Status changed from Ready For Testing to Closed
- Triaged changed from No to Yes
In develop it was fixed in #35279 and issue was reduced to a cherry pick fix in 3.3.1 that's been merged. Automation didn't pick that up.
Updated by Ewoud Kohl van Wijngaarden about 2 years ago
- Subject changed from Global Registration, if you use another LANG like pt_BR.UTF-8, it will broken the UUID to In Global Registration, using another LANG like pt_BR.UTF-8 breaks the UUID
Actions