warmfusion / sensu-extension-snmptrap

An SNMP Trap extension for Sensu that runs inside the Sensu-Client waiting for SNMP events to come in
MIT License
7 stars 9 forks source link

Template variables are only replaced once for each trap #5

Closed dave-hassett-rft closed 8 years ago

dave-hassett-rft commented 8 years ago

Updates the code to "deep_copy" the trapdef variable using the Marshal.load(Marshal.dump(o)) trick. This allows the trapdef substitutions to be processed each time a trap is handled.

warmfusion commented 8 years ago

This has been merged and released in 0.3.0

I also believe it fixes #4