Project

General

Profile

Actions

Feature #22440

open

Inherit organization and location from hostgroup when hostgroup is only in one loc/org

Added by Ondřej Pražák over 7 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
Organizations and Locations
Target version:
-
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

Description

Description of problem:

On provisioning a host with a hostgroup, hammer insists that location and organization must be specified. This can be expected if hostgroup is in multiple organizations, but if hostgroup is associated with only one location and organization, we expect these to be inherited by host automatically.

Steps to Reproduce:

hammer host create \
--name "utumcg0005" \
--comment "RHEL7 Proefkonijn" \
--hostgroup "$HOSTGROUP" \
--mac 00:50:56:8e:07:79 \
--model "VMware Virtual Platform" \

As taxonomies are not inherited in the same fashion as other attributes, this will likely require changes in both API and hammer.

No data to display

Actions

Also available in: Atom PDF