diff --git a/lib/puppet/type/sensu_check.rb b/lib/puppet/type/sensu_check.rb index 2bfed73de3..c495949e1b 100644 --- a/lib/puppet/type/sensu_check.rb +++ b/lib/puppet/type/sensu_check.rb @@ -45,7 +45,8 @@ def insync?(is) newproperty(:handlers, :array_matching => :all) do desc "List of handlers that responds to this check" def insync?(is) - is.sort == should.sort + return is.sort == should.sort if is.is_a?(Array) && should.is_a?(Array) + is == should end end @@ -81,7 +82,8 @@ def insync?(is) newproperty(:subscribers, :array_matching => :all) do desc "Who is subscribed to this check" def insync?(is) - is.sort == should.sort + return is.sort == should.sort if is.is_a?(Array) && should.is_a?(Array) + is == should end end