Bug #31754
closedUnable to re-register using the Global Registration Curl Command
Description
When trying to re-register a system using the generated curl command it throws the error mentioning that the system is already registered and it would need to use the option --force.
Error:
---
This system is already registered. Use --force to override
---
When --force option is using the below error is the output.
Error:
---
[root@localhost ~]# curl - X GET "https://foreman.example.com:9090/register?activation_key=new&hostgroup_id=3&location_id=2&operatingsystem_id=3&organization_id=1" - H 'Authorization: Bearer eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjo0LCJpYXQiOjE2MTE1Njk4ODEsImp0aSI6ImUxMzJkOGU1OGQ2MTc4YTc4ODM3ZjU2ZjY0MzJiZmZhYTZjYmI2OWY0ODFmMGFiYmFjNTJkOGZhZWVlN2JjMDMiLCJleHAiOjE2MTE1ODQyODF9.fLNNZqN_7HNYFcCyspX6Usqt6AN3u5oOUA3DIdEB6Pk' | bash --force
bash: --force: invalid option
....
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 10369 100 10369 0 0 20017 0 --:--:-- --:--:-- --:--:-- 20017
curl: (23) Failed writing body (0 != 10369)
---
Updated by The Foreman Bot almost 4 years ago
- Status changed from New to Ready For Testing
- Pull request https://github.com/theforeman/foreman/pull/8297 added
Updated by Leos Stejskal over 2 years ago
- Status changed from Ready For Testing to Closed