Project

General

Profile

Actions

Bug #35891

open

Registering RHEL6 Hosts fails with exception "bash: line 39: [: : integer expression expected"

Added by Leos Stejskal over 1 year ago.

Status:
New
Priority:
High
Assignee:
-
Category:
-
Target version:
-
Difficulty:
Triaged:
No
Fixed in Releases:
Found in Releases:

Description

Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=2156926

Description of problem:

Error Registering RHEL6 Hosts Using the Global Registration Template

Steps to Reproduce:
1. Hosts > Register host
2. Next, fill the registration forms and click Generate
3. Next use the curl command to register host it fails with error

Actual results:

  1. curl -sS --insecure 'https://foreman.example.com/register?activation_keys=Test&force=true&ignore_subman_errors=false&location_id=2&organization_id=1&update_packages=false' -H 'Authorization: Bearer eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjo0LCJpYXQiOjE2NzIzMjkzMTgsImp0aSI6ImQwMzYzNDgwNzJmN2RmZjYzMGE1ODZjYTFjOWZiYzFmNzA1YjhiYTI0OGMwYzczOGZlNGU5ZmQ1ZWI0Y2Q2YmYiLCJleHAiOjE2NzIzNDM3MTgsInNjb3BlIjoicmVnaXN0cmF0aW9uI2dsb2JhbCByZWdpc3RyYXRpb24jaG9zdCJ9.hYGcdtbqS7IbjDS0QIVLr4h8xcWULy4SfetDRY9286M' | bash

bash: line 39: [: : integer expression expected

Expected results:

The host should be registered successfully applying all the configurations without raising any exceptions.

No data to display

Actions

Also available in: Atom PDF