Actions
Bug #22718
closedHammer does not error when not all items in list of ids are resolved
Status:
Closed
Priority:
High
Assignee:
Category:
Foreman commands (obsolete)
Target version:
Difficulty:
Triaged:
Team Backlog:
Description
hammer role create --name a hammer user-group create --name ug1 --admin true --roles 'a,m' User group [ug1] created.
But after checking the logs that only role with id = 1 was added.
This is caused by how resolver is counting expected records.
It tries to guess if it is looking up records for resource in singular or plural from the options.
When both (e.g. --name and --names) are present it will pick singular and thus expects just one record.
In the example above the scoped options contain both name = ug1 and names = 'a,m' and the logic fails.
Updated by Martin Bacovsky over 6 years ago
- Target version changed from 246 to 249
Updated by The Foreman Bot over 6 years ago
- Status changed from Assigned to Ready For Testing
- Pull request https://github.com/theforeman/hammer-cli-foreman/pull/356 added
Updated by Martin Bacovsky over 6 years ago
- Status changed from Ready For Testing to Closed
- % Done changed from 0 to 100
Applied in changeset hammer-cli-foreman|b05b541848e59a21d6f67b7decfc3151933bbfc6.
Updated by Martin Bacovsky over 6 years ago
- Translation missing: en.field_release set to 342
Actions