Open jaxxstorm opened 6 years ago
Okay, I figured this out.
The issue seems to be here: https://github.com/sensu-plugins/sensu-extensions-deregistration/blob/master/lib/sensu/extensions/deregistration.rb#L54
This isn't actually a hash containing parsed JSON, it's a string containing literal JSON. I added:
event_data = MultiJson.load(event, symbolize_keys: true
And then referenced event_data
everywhere instead, and it worked. I can send a PR request if needed.
It's worth noting I'm loading this extensions as a legacy extension.
Trying to use this and getting the following error:
Any clues?