Actions
Bug #18339
closedhammer host create require -id version of options when name is used
Status:
Closed
Priority:
Normal
Assignee:
Category:
Hosts
Target version:
Difficulty:
Triaged:
Bugzilla link:
Team Backlog:
Description
Description of problem:
When creating a host without hostgroup validation on hammer side fails because it blindly checks whether options --architecture-id, --domain-id, --operatingsystem-id, --partition-table-id were passed and ignores the fact that they have name equivalents (--architecture, --domain, --operatingsystem, --partition-table).
Example:
hammer host create --architecture-id=1 --compute-profile="02-vm" --compute-resource="Local KVM" --domain="test.org" --environment-id=1 --location="Lab" --name="basic73" --operatingsystem-id=2 Could not create the host: Error: Options --architecture-id, --domain-id, --operatingsystem-id, --partition-table-id are required See: 'hammer host create --help'
Version-Release number of selected component (if applicable):
hammer-cli-foreman 0.9.0
How reproducible:
100% when hostgroup is not used.
Steps to Reproduce:
1. Execute the above command
Actual results:
host creation fails
Expected results:
Host created
Updated by Tomáš Strachota almost 8 years ago
- Subject changed from hammer host create require -id version of options when name is used to hammer host create require -id version of options when name is used
- Category changed from Other commands to Hosts
- Target version set to 115
Updated by Tomáš Strachota almost 8 years ago
- Status changed from New to Assigned
- Assignee set to Tomáš Strachota
- Target version changed from 115 to 1.11.2
Updated by Marek Hulán almost 8 years ago
- Target version changed from 1.11.2 to 1.11.4
Updated by The Foreman Bot almost 8 years ago
- Status changed from Assigned to Ready For Testing
- Pull request https://github.com/theforeman/hammer-cli-foreman/pull/284 added
Updated by Anonymous almost 8 years ago
- Status changed from Ready For Testing to Closed
- % Done changed from 0 to 100
Applied in changeset hammer-cli-foreman|9697696e7019eb8015fcfe002bb9274cb94cffd5.
Updated by Tomáš Strachota almost 8 years ago
- Translation missing: en.field_release set to 234
Actions