Puppet Function: conflicts

Defined in:
modules/wmflib/lib/puppet/parser/functions/conflicts.rb
Function type:
Ruby 3.x API

Overview

conflicts()Any

Returns:

  • (Any)


14
15
16
17
# File 'modules/wmflib/lib/puppet/parser/functions/conflicts.rb', line 14

newfunction(:conflicts, :arity => 1) do |args|
  Puppet::Parser::Functions.function(:defined)
  fail(Puppet::ParseError, "Resource conflicts with #{args.first}.") if function_defined(args)
end