Actions
Bug #14686
closedhammer hostgroup update or create command fails when using --organization-ids option fails
Difficulty:
Triaged:
Bugzilla link:
Description
Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1309107
Description of problem:
hammer hostgroup update or create command fails when using --organization-ids option fails with below error
- hammer hostgroup update --id 1 --lifecycle-environment "Library" --content-view "R7CV" --organization-ids 1
Could not update the hostgroup:
Error: Could not find organization, please set one of options --organizations, --organization-ids.
Version-Release number of selected component (if applicable):
Satellite 6.1.7 and below
How reproducible:
100%
Steps to Reproduce:
1. Execute the command either to create or update the hostgroup
- hammer hostgroup update --id 1 --lifecycle-environment "Library" --content-view "MyCV" --organization-ids 1
Could not update the hostgroup:
Error: Could not find organization, please set one of options --organizations, --organization-ids.
Actual results:
Its failing to parse the --organizations-ids flag, however when using --organization "ORG_NAME" it succeeds.
Expected results:
Should work with --organizations-id option as well.
Additional info:
- hammer hostgroup update --id 1 --lifecycle-environment "Library" --content-view "MyCV" --organizations ACME
Hostgroup updated
The above command works with --organizations flag not with --organizations-id option.
Updated by The Foreman Bot over 8 years ago
- Status changed from New to Ready For Testing
- Pull request https://github.com/theforeman/foreman/pull/3435 added
Updated by Dominic Cleal over 8 years ago
- Project changed from Hammer CLI to Foreman
- Category set to Search
- Assignee set to Andrew Kofink
Updated by Andrew Kofink over 8 years ago
- Status changed from Ready For Testing to Closed
- % Done changed from 0 to 100
Applied in changeset 6ee7a8b40807944058c664248570a3031cdb6172.
Updated by Dominic Cleal over 8 years ago
- Translation missing: en.field_release set to 155
Updated by The Foreman Bot over 8 years ago
- Pull request https://github.com/theforeman/hammer-cli-foreman/pull/242 added
Updated by The Foreman Bot over 8 years ago
- Pull request https://github.com/Katello/hammer-cli-katello/pull/401 added
Updated by Andrew Kofink over 8 years ago
- Related to Bug #15312: hammer hostgroup update/create commands are untested added
Updated by Andrew Kofink over 8 years ago
- Related to Bug #15313: hammer hostgroup update or create command fails when using --organization-ids option fails added
Updated by Andrew Kofink over 8 years ago
- Related to Bug #15647: Hammer hostgroup create insist on lifecycle environment added
Actions