Puppet: System Administration Automated

Support

Ticket #703: collexpr.diff

File collexpr.diff, 1.6 kB (added by thijs, 1 year ago)

created with git diff

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

    old new  
    5454            if str1 == "title" 
    5555                str = "title #{oper} '#{str2}'" 
    5656            else 
    57                 unless self.form == :virtual or str1 == "title" 
    58                     parsefail "Collection from the database only supports " + 
    59                         "title matching currently" 
    60                 end 
     57#                unless self.form == :virtual or str1 == "title" 
     58#                    parsefail "Collection from the database only supports " + 
     59#                        "title matching currently" 
     60#                end 
    6161                str = "rails_parameters.name = '#{str1}' and " + 
    6262                    "rails_parameters.value #{oper} '#{str2}'" 
    6363            end 
    6464        else 
    6565            str = [str1, oper, str2].join(" ") 
    6666        end 
    67  
     67       
    6868        return str, code 
    6969    end 
    7070 
  • a/lib/puppet/parser/collector.rb

    old new  
    3737                args 
    3838            ).each do |obj| 
    3939                if resource = export_resource(obj) 
    40                     count += 1 
    41                     resources << resource 
     40                    if match?(resource) 
     41                        count += 1 
     42                        resources << resource 
     43                    end 
    4244                end 
    4345            end 
    4446        end