Project

General

Profile

Bug #14686

hammer hostgroup update or create command fails when using --organization-ids option fails

Added by Andrew Kofink over 3 years ago. Updated about 1 year ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Search
Target version:

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

  1. 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

  1. 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:

  1. 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.


Related issues

Related to Hammer CLI - Bug #15312: hammer hostgroup update/create commands are untestedClosed2016-06-06
Related to Katello - Bug #15313: hammer hostgroup update or create command fails when using --organization-ids option failsClosed2016-06-06
Related to Katello - Bug #15647: Hammer hostgroup create insist on lifecycle environmentRejected2016-07-11

Associated revisions

Revision 6ee7a8b4 (diff)
Added by Andrew Kofink over 3 years ago

Fixes #14686 - Allow scoped search on ID for organizations

Revision 89ab8f72 (diff)
Added by Andrew Kofink about 3 years ago

Fixes #14686 - Allow scoped search on ID for organizations

(cherry picked from commit 6ee7a8b40807944058c664248570a3031cdb6172)

History

#1 Updated by The Foreman Bot over 3 years ago

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

#2 Updated by Dominic Cleal over 3 years ago

  • Project changed from Hammer CLI to Foreman
  • Category set to Search
  • Assignee set to Andrew Kofink

#3 Updated by Andrew Kofink over 3 years ago

  • Status changed from Ready For Testing to Closed
  • % Done changed from 0 to 100

#4 Updated by Dominic Cleal about 3 years ago

  • Legacy Backlogs Release (now unused) set to 155

#5 Updated by The Foreman Bot about 3 years ago

  • Pull request https://github.com/theforeman/hammer-cli-foreman/pull/242 added

#6 Updated by The Foreman Bot about 3 years ago

  • Pull request https://github.com/Katello/hammer-cli-katello/pull/401 added

#7 Updated by Andrew Kofink about 3 years ago

  • Related to Bug #15312: hammer hostgroup update/create commands are untested added

#8 Updated by Andrew Kofink about 3 years ago

  • Related to Bug #15313: hammer hostgroup update or create command fails when using --organization-ids option fails added

#9 Updated by Andrew Kofink about 3 years ago

  • Related to Bug #15647: Hammer hostgroup create insist on lifecycle environment added

Also available in: Atom PDF