[Pkg-puppet-devel] [SCM] Puppet packaging for Debian branch, upstream, updated. 2.6.5rc1-120-g2247c80

Nick Lewis nick at puppetlabs.com
Mon Feb 7 06:40:36 UTC 2011


The following commit has been merged in the upstream branch:
commit f9bfb968fac70eca9fe29bbd8afbcabfa1c27b9e
Author: Nick Lewis <nick at puppetlabs.com>
Date:   Fri Jan 14 10:55:05 2011 -0800

    (#5900) Include ResourceStatus#failed in serialized reports
    
    This property was excluded from serialization because it was believed that its
    value could be determined by looking at the events of a ResourceStatus.
    However, if a resource can't be retrieved, it will have no events created, and
    will have no other way of determining its status.
    
    Reviewed-By: Paul Berry

diff --git a/lib/puppet/resource/status.rb b/lib/puppet/resource/status.rb
index a9a6442..dea8c10 100644
--- a/lib/puppet/resource/status.rb
+++ b/lib/puppet/resource/status.rb
@@ -12,7 +12,7 @@ module Puppet
       attr_reader :source_description, :default_log_level, :time, :resource
       attr_reader :change_count, :out_of_sync_count, :resource_type, :title
 
-      YAML_ATTRIBUTES = %w{@resource @file @line @evaluation_time @change_count @out_of_sync_count @tags @time @events @out_of_sync @changed @resource_type @title @skipped}
+      YAML_ATTRIBUTES = %w{@resource @file @line @evaluation_time @change_count @out_of_sync_count @tags @time @events @out_of_sync @changed @resource_type @title @skipped @failed}
 
       # Provide a boolean method for each of the states.
       STATES.each do |attr|
@@ -52,6 +52,7 @@ module Puppet
         @changed = false
         @out_of_sync = false
         @skipped = false
+        @failed = false
 
         [:file, :line].each do |attr|
           send(attr.to_s + "=", resource.send(attr))

-- 
Puppet packaging for Debian



More information about the Pkg-puppet-devel mailing list