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

Represent 'unlimited' as 0 for `hammer host-registration generate-command`

XMLWordPrintable

    • Rocket Sprint 12, Sat_docs_3_2024
    • Moderate
    • None

      Description of problem:

      When trying to create a host-registration script with an unlimited life time using hammer, it complains about the parameter not being numeric (it's possible to set that generate that same script with unlimited life time through the web UI):

      ```

      1. hammer host-registration generate-command --organization-id 1 --activation-key $AK --jwt-expiration unlimited --insecure true --force true
        Failed to generate registration command:
        Error: Option '--jwt-expiration': Numeric value is required..

      See: 'hammer host-registration generate-command --help'.
      ```

      Version-Release number of selected component (if applicable):

      Satellite 6.13 Snap 15

      How reproducible:

      Always.

      Steps to Reproduce:
      1.
      2.
      3.

      Actual results:

      Host registration command is not generated.

      Expected results:

      Host registration command should be generated with an unlimited JWT life time.

      Additional info:

        There are no Sub-Tasks for this issue.

            rh-ee-gisoni Girija Soni
            jira-bugzilla-migration RH Bugzilla Integration
            Leos Stejskal Leos Stejskal
            Shweta Singh Shweta Singh
            Lena Ansorgová Lena Ansorgová (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: