Bug #6335

Host create requires environment-id etc options when --hostgroup is used

Added by Dominic Cleal over 3 years ago. Updated over 3 years ago.

Status:Closed
Priority:Normal
Assigned To:Dominic Cleal
Category:Foreman commands
Target version:Foreman - Sprint 26
Difficulty: Bugzilla link:
Found in release: Pull request:
Story points-
Velocity based estimate-

Description

When using --hostgroup as opposed to --hostgroup-id, the host create validation says that certain additional arguments are required:

$ hammer host create --hostgroup libvirt --name hammer1
Could not create the host:
  Error: Options --environment-id, --architecture-id, --domain-id, --puppet-proxy-id, --operatingsystem-id, --partition-table-id are required

  See: 'hammer host create --help'

Associated revisions

Revision 0db1f893
Added by Dominic Cleal over 3 years ago

fixes #6335 - permit only --hostgroup when creating host

History

#1 Updated by Dominic Cleal over 3 years ago

  • Status changed from Assigned to Ready For Testing

#2 Updated by Dmitri Dolguikh over 3 years ago

  • Target version changed from Sprint 25 to Sprint 26

#3 Updated by Dominic Cleal over 3 years ago

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

Also available in: Atom PDF