Bug #6448
closedbroken API for registering a content host
Description
Description of problem:
API for creating a content host fails with: "Cp type is not included in the list". cp type isn't among the list of required API parameters.
Version-Release number of selected component (if applicable):
Satellite-6.0.3-RHEL-6-20140619.0-Satellite-x86_64
How reproducible:
always
Steps to Reproduce:
1. call API to create/register a content host:
curl -s -H "Content-Type:application/json" -H "Accept:application/json,version=2" -k -u admin:changeme -X POST -d'{"name":"one", "organization_id":1, "type":"content host", "facts":{"1":1}}' `hostname`/katello/api/systems
Actual results:
API fails with:
{
"displayMessage": "Validation failed: Cp type is not included in the list",
"errors": {
"cp_type": [
"is not included in the list"
]
}
}
Expected results:
content host created/registered
Additional info:
This is a blocker for system profile migration from Sat5.
Updated by dustin tsang almost 11 years ago
- Status changed from New to Closed
- % Done changed from 0 to 100
Applied in changeset katello|4d138cc913f9341c200e1bfeecc7b8ebb18cdb90.
Updated by Eric Helms over 10 years ago
- Translation missing: en.field_release set to 13