Project

General

Profile

Actions

Bug #10629

closed

Some Hammer commands which issue a look up by name fail

Added by Greg Koch almost 10 years ago. Updated almost 7 years ago.

Status:
Resolved
Priority:
High
Assignee:
Category:
Hammer
Target version:
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

Description

Some Hammer commands which issue a look up by name fail because they require an organization for scoping, but organization is not a valid parameter on the command.

  • activation-key add-host-collection
  • content-view version list

Example commands that fail:

hammer activation-key add-host-collection --id 142 --host-collection dev-centos-6.6 --organization-id 1
Could not add host collection:
  One of parameters [ organization_id ] required but not specified.

hammer activation-key add-host-collection --name dev-centos-6.6-xxxxx-xxxx-srv-ak --host-collection dev-centos-6.6 --organization-id 1
Could not add host collection:
  One of parameters [ organization_id ] required but not specified.

hammer content-view version list --content-view centos-6.6-x86_64-cv --organization-id 1
Error: Unrecognised option '--organization-id'

Example commands that work:

hammer activation-key add-host-collection --id 142 --host-collection-id 21 --organization-id 1

hammer content-view version list --content-view-id 81

Actions

Also available in: Atom PDF