~ubuntu-branches/ubuntu/oneiric/puppet/oneiric-security

« back to all changes in this revision

Viewing changes to lib/puppet/reference/providers.rb

  • Committer: Bazaar Package Importer
  • Author(s): Micah Anderson
  • Date: 2008-07-26 15:43:45 UTC
  • mfrom: (1.1.8 upstream) (3.1.1 lenny)
  • Revision ID: james.westby@ubuntu.com-20080726154345-c03m49twzxewdwjn
Tags: 0.24.5-2
* Fix puppetlast to work with 0.24.5
* Adjust logcheck to match against new log messages in 0.24.5
* Update standards version to 3.8.0 (no changes)
* Update changelog to reduce length of line to make lintian happy

Show diffs side-by-side

added added

removed removed

Lines of Context:
63
63
                    case test
64
64
                    when :exists:
65
65
                        details += "  - Missing files %s\n" % values.join(", ")
66
 
                    when :facter:
 
66
                    when :variable:
67
67
                        values.each do |name, facts|
68
 
                            details += "  - Fact %s (currently %s) not in list %s\n" % [name, Facter.value(name).inspect, facts.join(", ")]
 
68
                            if Puppet.settings.valid?(name)
 
69
                                details += "  - Setting %s (currently %s) not in list %s\n" % [name, Puppet.settings.value(name).inspect, facts.join(", ")]
 
70
                            else
 
71
                                details += "  - Fact %s (currently %s) not in list %s\n" % [name, Facter.value(name).inspect, facts.join(", ")]
 
72
                            end
69
73
                        end
70
74
                    when :true:
71
75
                        details += "  - Got %s true tests that should have been false\n" % values
72
76
                    when :false:
73
77
                        details += "  - Got %s false tests that should have been true\n" % values
 
78
                    when :feature:
 
79
                        details += "  - Missing features %s\n" % values.collect { |f| f.to_s }.join(",")
74
80
                    end
75
81
                end
76
82
                notes << details