lib/puppet/type/macgroup.rb
# Override #insync?
# - We need to sort the Arrays before performing an equality test.
# - We also need to obey the :strict param and compare the Arrays appropriately
Override #insync.
We need to sort the Arrays before performing an equality test.
We also need to obey the :strict param and compare the Arrays appropriately
Override #insync . We need to sort the Arrays before performing an equality test . We also need to obey the : strict param and compare the Arrays appropriately
def insync?(is)
      i, s = [is, should].collect do |a|
        if a == :absent
          []
        else
          a = Array(a)
          a.compact!
          a.sort!
        end
      end
      return i.eql? s if resource[:strict] == :true
      (i | s).eql? i
    end
def insync? ( is ) i , s = [ is , should ] . collect do | a | if a == :absent [ ] else a = Array ( a ) a . compact! a . sort! end end return i . eql? s if resource [ :strict ] == :true ( i | s ) . eql? i end
Override #insync?
Override #insync?
is