Skip to content

Fix issue with some resource types not updating (eg. 'hostgroup').#34

Open
stana wants to merge 1 commit intoNosmoht:masterfrom
stana:resource_upd_fix
Open

Fix issue with some resource types not updating (eg. 'hostgroup').#34
stana wants to merge 1 commit intoNosmoht:masterfrom
stana:resource_upd_fix

Conversation

@stana
Copy link

@stana stana commented Nov 12, 2018

For update api PUT requests, Foreman is expecting params to be sent
inside 'resource type' dict (similar to 'create'). For example -

{
  "id": <resource id>,
  "<resource type>": {
    "param1": "value",
    "param2": "value",
    ...
    "paramN": "value"
  }
}

For update api PUT requests Foreman is expecting params to be sent
inside "<resource type>" dict (similar to 'create'). For example -

    {
      "id": <resource id>,
      "<resource type>": {
        "param1": "value",
        "param2": "value",
        ...
        "paramN": "value"
      }
    }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant