You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Server Error: Evaluation Error: Error while evaluating a Resource Statement, Telegraf::Input[my_snmp]: parameter 'options' expects an Array value, got Struct
What behaviour did you expect instead
I would expect options to still work as a hash, as before and as still documented. It seems like it's now mandatory to have it be an array.
Output log
Any additional information you'd like to impart
Updating from 1.5.0 to 4.0.0 has broken such code for me:
# interrupts : waaay too much data, we only care about network
telegraf::input { 'interrupts-tagpass':
plugin_type => 'interrupts',
options => {
'tagpass' => [
'irq' => [ 'NET_RX', 'NET_TX' ],
]
},
}
Affected Puppet, Ruby, OS and module versions/distributions
How to reproduce (e.g Puppet code you use)
Using this copy/pasted from the README:
What are you seeing
Results in:
What behaviour did you expect instead
I would expect
optionsto still work as a hash, as before and as still documented. It seems like it's now mandatory to have it be an array.Output log
Any additional information you'd like to impart
Updating from 1.5.0 to 4.0.0 has broken such code for me:
The above created the following configuration:
It now seems impossible to achieve it, as enclosing the options's {} into [] creates the 2nd line with double brackets, which no longer works.
The text was updated successfully, but these errors were encountered: