Project

General

Profile

Actions

Bug #14686

closed

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

Added by Andrew Kofink about 8 years ago. Updated almost 6 years 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 3 (0 open3 closed)

Related to Hammer CLI - Bug #15312: hammer hostgroup update/create commands are untestedClosedAndrew Kofink06/06/2016Actions
Related to Katello - Bug #15313: hammer hostgroup update or create command fails when using --organization-ids option failsClosedAndrew Kofink06/06/2016Actions
Related to Katello - Bug #15647: Hammer hostgroup create insist on lifecycle environmentRejectedAndrew Kofink07/11/2016Actions
Actions #1

Updated by The Foreman Bot about 8 years ago

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

Updated by Dominic Cleal about 8 years ago

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

Updated by Andrew Kofink about 8 years ago

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

Updated by Dominic Cleal about 8 years ago

  • translation missing: en.field_release set to 155
Actions #5

Updated by The Foreman Bot almost 8 years ago

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

Updated by The Foreman Bot almost 8 years ago

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

Updated by Andrew Kofink almost 8 years ago

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

Updated by Andrew Kofink almost 8 years ago

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

Updated by Andrew Kofink almost 8 years ago

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

Also available in: Atom PDF