Payload crashes if object returns nil
Using a template like:
ip: [ @object.ip, @object.ip6 ],
The webhook/payload-function crashes if the host targeted has no hostgroup with a message that it cannot 'render' for nil:NilClass.
You can workaround that by casting that into a string with:
But in that case if the hostgroup is not set it will just return an empty string and something like "null" would be better.
Version used is Foreman 3.1 with Webhooks-Plugin 3.0