diff options
| author | Luke Kanies <luke@reductivelabs.com> | 2010-01-20 02:21:54 -0800 |
|---|---|---|
| committer | test branch <puppet-dev@googlegroups.com> | 2010-02-17 06:50:53 -0800 |
| commit | 9919b14f262c994a58eb202cda408f1b90d728e0 (patch) | |
| tree | 6a2e32783ab1f2c724f670f4ea8a9ef8adc411e8 /lib/puppet/resource/status.rb | |
| parent | a9fc13409db7147918eeeb47e91315c6eb980432 (diff) | |
| download | puppet-9919b14f262c994a58eb202cda408f1b90d728e0.tar.gz puppet-9919b14f262c994a58eb202cda408f1b90d728e0.tar.xz puppet-9919b14f262c994a58eb202cda408f1b90d728e0.zip | |
Moving Metric management to the reports
This is one less bit that the transaction does.
The resource status objects had nearly enough information
to do everything, so I just added that last bit, and moved
everything over. It's all much cleaner now.
I had to change some existing, internal APIs, but mostly
this should be hidden from outside users.
Signed-off-by: Luke Kanies <luke@reductivelabs.com>
Diffstat (limited to 'lib/puppet/resource/status.rb')
| -rw-r--r-- | lib/puppet/resource/status.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/puppet/resource/status.rb b/lib/puppet/resource/status.rb index 0ca295d4d..ab088fb19 100644 --- a/lib/puppet/resource/status.rb +++ b/lib/puppet/resource/status.rb @@ -2,10 +2,10 @@ class Puppet::Resource::Status include Puppet::Util::Tagging include Puppet::Util::Logging - ATTRIBUTES = [:resource, :node, :version, :file, :line, :current_values, :skipped_reason, :status, :evaluation_time] + ATTRIBUTES = [:resource, :node, :version, :file, :line, :current_values, :skipped_reason, :status, :evaluation_time, :change_count] attr_accessor *ATTRIBUTES - STATES = [:skipped, :failed, :changed, :out_of_sync, :scheduled] + STATES = [:skipped, :failed, :failed_to_restart, :restarted, :changed, :out_of_sync, :scheduled] attr_accessor *STATES attr_reader :source_description, :default_log_level, :time, :resource |
