Project

General

Profile

Actions

Bug #12566

closed

New Host API changed host_parameters_attributes behavior

Added by Lukas Zapletal about 9 years ago. Updated over 6 years ago.

Status:
Closed
Priority:
Normal
Category:
API
Target version:
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

Description

This API call used to work:

{
    "host": {
        "name": "test",
        "mac": "AA:BB:CC:DD:EE:F1",
        "organization_id": 3,
        "location_id": 2,
        "hostgroup_id": 7,
        "host_parameters_attributes": [
            {
                "name": "compute_resource_id",
                "value": "1",
                "_destroy": "false",
                "nested": "false" 
            }
        ]
    }
}

Now it fails with ActiveRecord::UnknownAttributeError: unknown attribute: nested. Regression, looks like some nesting changes broke this, since oVirt uses this API (via discovery), we should consider a portability fix.


Related issues 3 (0 open3 closed)

Related to Discovery - Bug #12516: PUT request for discovered_hosts/[id] fails with "unknown attribute: nested"ClosedLukas Zapletal11/18/2015Actions
Related to Foreman - Bug #9815: HostGroup Clone doesn't work if the hostgroup has parametersClosedChristine Fouant03/18/2015Actions
Related to Hammer CLI - Bug #12090: foreman-cli 0.4 does not work with foreman 1.10-devClosed10/07/2015Actions
Actions

Also available in: Atom PDF