Skip to content

Commit

Permalink
[redis] Fix warn_on_missing_keys option (#495)
Browse files Browse the repository at this point in the history
  • Loading branch information
olivielpeau authored Dec 1, 2017
1 parent 759e7f4 commit 2d8f119
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions spec/integrations/redis_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -41,7 +41,7 @@
'optional_tag1',
'optional_tag2'
],
warn_on_missing_keys: true
warn_on_missing_keys: false
}
]
}
Expand Down
4 changes: 2 additions & 2 deletions templates/default/redisdb.yaml.erb
Original file line number Diff line number Diff line change
Expand Up @@ -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| -%>
Expand Down

0 comments on commit 2d8f119

Please sign in to comment.