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

Also available in: Atom PDF