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): ``` # 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:
I made this an RFE, to propose the support of `unlimited` token expiration option also in Hammer and also API
*** Bug 2228192 has been marked as a duplicate of this bug. ***
An important point to add ( mentioned in dup BZ# 2228192 ) is that when we use the API, it accepts "unlimited" as a valid value ( same as UI ). But it seems it's just the hammer with some validation in place which would not accept anything except a numerical value.