Puppet: System Administration Automated

Support

Ticket #723: fix-functions-to-be-statements.patch

File fix-functions-to-be-statements.patch, 0.5 kB (added by DavidS, 1 year ago)

patch to override the settor? method

  • a/lib/puppet/parser/ast/function.rb

    old new  
    55    class Function < AST::Branch 
    66        attr_accessor :name, :arguments 
    77 
    8         @settor = true 
     8        def settor?  
     9                not Puppet::Parser::Functions.rvalue?(@name) 
     10        end 
    911 
    1012        def evaluate(hash) 
    1113            # We don't need to evaluate the name, because it's plaintext