[redis] Fix `warn_on_missing_keys` option
MODIFY
spec/integrations/redis_spec.rb
spec/integrations/redis_spec.rb
@@ -15,7 +15,7 @@ describe 'datadog::redisdb' do
keys:
- key1
- key2
- warn_on_missing_keys: True
+ warn_on_missing_keys: False
slowlog-max-len: 128
command_stats: True
EOF
@@ -41,7 +41,7 @@ describe 'datadog::redisdb' do
'optional_tag1',
'optional_tag2'
],
- warn_on_missing_keys: true
+ warn_on_missing_keys: false
}
]
}

MODIFY
templates/default/redisdb.yaml.erb
templates/default/redisdb.yaml.erb
@@ -21,8 +21,8 @@ instances:
<% end -%>
<% end -%>
<% if i.key?("keys") -%>
- <% if i.key?("warn_on_missing_keys") and i["warn_on_missing_keys"]-%>
- warn_on_missing_keys: True
+ <% if i.key?("warn_on_missing_keys") -%>
+ warn_on_missing_keys: <%= i['warn_on_missing_keys'] %>
<% end -%>
keys:
<% i["keys"].each do |k| -%>

[redis] Fix `warn_on_missing_keys` option (#495)