Project

General

Profile

Actions

Bug #36972

closed

`hammer host-registration generate-command` doesn't accept `unlimited` as JWT life time

Added by Girija Soni about 1 year ago. Updated 11 months ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Difficulty:
Triaged:
No
Fixed in Releases:
Found in Releases:

Description

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

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:


Related issues 1 (0 open1 closed)

Related to Foreman - Bug #37490: Incorrect translation in registration command validationClosedEwoud Kohl van WijngaardenActions
Actions #1

Updated by The Foreman Bot about 1 year ago

  • Status changed from New to Ready For Testing
  • Pull request https://github.com/theforeman/foreman/pull/9951 added
Actions #2

Updated by The Foreman Bot 11 months ago

  • Fixed in Releases 3.10.0 added
Actions #3

Updated by Girija Soni 11 months ago

  • Status changed from Ready For Testing to Closed
Actions #4

Updated by Ewoud Kohl van Wijngaarden 7 months ago

  • Related to Bug #37490: Incorrect translation in registration command validation added
Actions

Also available in: Atom PDF