Uploaded image for project: 'Satellite'
  1. Satellite
  2. SAT-27640

Registering RHEL6 host using Global Registration Template fails with "bash: line 32: [: : integer expression expected"

XMLWordPrintable

    • False
    • Hide

      None

      Show
      None
    • False
    • 0
    • Moderate
    • No

      Description of problem:

      Registering RHEL6 host using Global Registration Template fails with "bash: line 32: [: : integer expression expected"

      How reproducible:

      100%

      Is this issue a regression from an earlier version:

       

      Steps to Reproduce:

      1. Navigate to Hosts --> Register Host

      2. Fill the details and Click on Generate

      3. Copy the generated Curl command and paste it on client machine

       

      Actual behavior:

      • Curl command shows message "bash: line 32: [: : integer expression expected" on RHEL6 client.

      ~~~

      {}# set -o pipefail && curl -sS --insecure 'https://satellite.example.com/register?activation_keys=RHEL6&force=true&ignore_subman_errors=true&location_id=2&organization_id=1&update_packages=false' -H 'Authorization: Bearer eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjo0LCJpYXQiOjE3MjUyODY5NzcsImp0aSI6IjA5OGNjMjk1N2I5N2Q0ZDZjNDk1NWUyMzdjN2U0MWEzYmE3YjcxNGU0ZTVkNTFjNTFiNTM1Y2JhNDM0OGM5Y2YiLCJleHAiOjE3MjUzMDEzNzcsInNjb3BlIjoicmVnaXN0cmF0aW9uI2dsb2JhbCByZWdpc3RyYXRpb24jaG9zdCJ9.YAMG2tvIc2D1SLA8gnEC2gHGfPcqQxXE9XNNVSviWTY' | bash
      bash: line 32: [: : integer expression expected
      #
      ~~~

      Expected behavior:

      While registering the RHEL6 host it should not displayed the message "bash: line 32: [: : integer expression expected" on RHEL6 client.

       

      Business Impact / Additional info:

       

            Unassigned Unassigned
            rhn-support-sshewale Sonam Shewale
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: