Skip to content

Commit

Permalink
Fix potential issue for client subscriptions parameter, as redact in s…
Browse files Browse the repository at this point in the history
  • Loading branch information
alvagante committed Oct 30, 2017
1 parent 9206f0f commit 8dab658
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/puppet/type/sensu_client_config.rb
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,10 @@ def initialize(*args)

newproperty(:subscriptions, :array_matching => :all) do
desc ""
newvalues(/.*/, :absent)
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

Expand Down

0 comments on commit 8dab658

Please sign in to comment.