This message was deleted.
# puppet-enterprise
s
This message was deleted.
v
I 'borrowed' a function from some deprecated mode
Copy code
Puppet::Parser::Functions::newfunction(:is_classified_with, :arity => 1,
                                       :type => :rvalue) do |(str)|
  compiler.node.classes.keys.include?(str)
end
seems still working
c
That likely shows which classes were added to the node definition, usually by the ENC. Which is related to which Classifier Groups the node was matched to, but not quite the same.
✔️ 1
v
PE uses some secret sauce in classification, so
defined
function never worked to detect those classes