From cff39fb132b5c137e10c0b915a2032eb4507cec0 Mon Sep 17 00:00:00 2001 From: Stefan Andres Date: Thu, 7 Aug 2014 15:56:54 +0200 Subject: [PATCH] add missing to_i for refresh and occurrences in sensu_check in json generator --- lib/puppet/provider/sensu_check/json.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/puppet/provider/sensu_check/json.rb b/lib/puppet/provider/sensu_check/json.rb index 185f023f56..bc6064e8ec 100644 --- a/lib/puppet/provider/sensu_check/json.rb +++ b/lib/puppet/provider/sensu_check/json.rb @@ -98,7 +98,7 @@ def occurrences end def occurrences=(value) - conf['checks'][resource[:name]]['occurrences'] = value + conf['checks'][resource[:name]]['occurrences'] = value.to_i end def refresh @@ -106,7 +106,7 @@ def refresh end def refresh=(value) - conf['checks'][resource[:name]]['refresh'] = value + conf['checks'][resource[:name]]['refresh'] = value.to_i end def command