diff --git a/lib/puppet/provider/sensu_check/json.rb b/lib/puppet/provider/sensu_check/json.rb index 2a0be209d8..136b22d7da 100644 --- a/lib/puppet/provider/sensu_check/json.rb +++ b/lib/puppet/provider/sensu_check/json.rb @@ -147,7 +147,7 @@ def refresh=(value) end def occurrences - conf['checks'][resource[:name]]['occurrences'] + conf['checks'][resource[:name]]['occurrences'].to_s end def occurrences=(value) @@ -155,7 +155,7 @@ def occurrences=(value) end def low_flap_threshold - conf['checks'][resource[:name]]['low_flap_threshold'] + conf['checks'][resource[:name]]['low_flap_threshold'].to_s end def low_flap_threshold=(value) @@ -163,7 +163,7 @@ def low_flap_threshold=(value) end def high_flap_threshold - conf['checks'][resource[:name]]['high_flap_threshold'] + conf['checks'][resource[:name]]['high_flap_threshold'].to_s end def high_flap_threshold=(value)