From 0dc982a64b978e1340b9fa43160200f5768b9131 Mon Sep 17 00:00:00 2001 From: Olivier Vielpeau Date: Fri, 1 Dec 2017 11:46:19 +0100 Subject: [PATCH] [redis] Fix `warn_on_missing_keys` option --- spec/integrations/redis_spec.rb | 4 ++-- templates/default/redisdb.yaml.erb | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/spec/integrations/redis_spec.rb b/spec/integrations/redis_spec.rb index 6d55e83d..4da586e0 100644 --- a/spec/integrations/redis_spec.rb +++ b/spec/integrations/redis_spec.rb @@ -15,7 +15,7 @@ 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 @@ 'optional_tag1', 'optional_tag2' ], - warn_on_missing_keys: true + warn_on_missing_keys: false } ] } diff --git a/templates/default/redisdb.yaml.erb b/templates/default/redisdb.yaml.erb index 706064bc..e610af37 100644 --- a/templates/default/redisdb.yaml.erb +++ b/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| -%>