Actions
Bug #30620
closedAPI Create vmware ComputeResource fails with "Datacenter can't be blank"
Status:
Closed
Priority:
High
Assignee:
Category:
Compute resources - VMware
Target version:
Difficulty:
Triaged:
No
Bugzilla link:
Pull request:
Description
When trying to create a new compute-resource via API (e.g. foreman-ansible-modules or hammer), the request fails with Datacenter can't be blank
$ hammer compute-resource create --provider="VMWare" --name "vCenter" --description "Test vCenter" --user "administrator" --server "vsphere.example.com" --password 'secret' --datacenter "DEV" Could not create the compute resource: Datacenter can't be blank
I suspect the change from #30372 to be the reason for this, because it removes the datacenter
-option from the compute-resource create instruction.
Actions