DataDog / ansible-datadog-callback

Ansible callback to get stats & events directly into Datadog http://datadoghq.com
MIT License
93 stars 47 forks source link

Fix KeyError on `res` argument passed to `runner_on_ok` #3

Closed olivielpeau closed 9 years ago

olivielpeau commented 9 years ago

Use a more conservative approach as to the existence of the changed key.

This could be extended to all the keys that are used on dicts passed to the callback (as afaik Ansible doesn't provide any guarantee of their existence), but for now a case-by-case approach may be enough.