Project

General

Profile

Actions

Bug #7085

closed

hammer hostroup create & update requires all options as ids.

Added by Tomáš Strachota almost 10 years ago. Updated almost 6 years ago.

Status:
Closed
Priority:
Normal
Category:
-
Target version:
Difficulty:
Triaged:
Team Backlog:
Fixed in Releases:
Found in Releases:
In Kanboard:

Description

Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1102331
Description of problem:

Looking at hammer hostgroup create --help:

[root@box ~]# hammer hostgroup create --help
Usage:
hammer hostgroup create [OPTIONS]

Options:
--architecture-id ARCHITECTURE_ID
--domain-id DOMAIN_ID
--environment-id ENVIRONMENT_ID
--medium-id MEDIUM_ID
--name NAME
--operatingsystem-id OPERATINGSYSTEM_ID
--parent-id PARENT_ID
--ptable-id PTABLE_ID
--puppet-ca-proxy-id PUPPET_CA_PROXY_ID
--puppet-proxy-id PUPPET_PROXY_ID
--puppetclass-ids PUPPETCLASS_IDS Comma separated list of values.
--realm-id REALM_ID
--subnet-id SUBNET_ID
-h, --help print help

The following options require you to specify an id:

--architecture-id ARCHITECTURE_ID  
--domain-id DOMAIN_ID
--environment-id ENVIRONMENT_ID
--medium-id MEDIUM_ID
--operatingsystem-id OPERATINGSYSTEM_ID
--parent-id PARENT_ID
--ptable-id PTABLE_ID
--puppet-ca-proxy-id PUPPET_CA_PROXY_ID
--puppet-proxy-id PUPPET_PROXY_ID
--puppetclass-ids PUPPETCLASS_IDS Comma separated list of values.
--realm-id REALM_ID
--subnet-id SUBNET_ID

There should be someway to do all this without referencing the ID.

Actions

Also available in: Atom PDF