> Running 1.15 with foreman_hooks, and the json output to my hooks is 
> different between a 'create' and 'destroy' event. In the 'destroy' event I 
> am missing host parameters from the json output, but I can't find the 
> reason for this in the code. 
>
> Anybody here know why this is? 
>
>
I also see a change in JSON structure on update events as well.

In 1.14.1 it was something like this:

{
  "host": {
    "ip": "10.153.84.14",
    "ip6": "",
    "environment_id": 1,
    "environment_name": "production",
    "last_report": "2017-05-31 12:46:15 -0700",
    "mac": "52:54:00:f7:41:45",
    "realm_id": null,
    "realm_name": null,
<snip>

But in 1.15.0 and even 1.14.3 it is like this:

{
  "host": {
    "host": {
      "ip": "10.109.236.95",
      "ip6": "",
      "environment_id": 2,
      "environment_name": "common",
      "last_report": "2017-05-31 12:23:46 -0700",
      "mac": "52:54:00:c7:da:da",
      "realm_id": null,
      "realm_name": null,
<snip>

Is this by design and going to be a format going forward? I checked the 
release notes and did not find anything about that, but maybe it was not 
obviously-named change.

It would be nice to advertise the change in JSON structures to allow people 
to update their hooks, etc.

-- 
You received this message because you are subscribed to the Google Groups 
"Foreman users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/foreman-users.
For more options, visit https://groups.google.com/d/optout.

Reply via email to