Signed-off-by: Paul Berry <[email protected]>
---
lib/puppet/resource/status.rb | 4 ++--
spec/unit/resource/status_spec.rb | 4 ++--
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/lib/puppet/resource/status.rb b/lib/puppet/resource/status.rb
index 2bfadbd..43d3f16 100644
--- a/lib/puppet/resource/status.rb
+++ b/lib/puppet/resource/status.rb
@@ -4,7 +4,7 @@ module Puppet
include Puppet::Util::Tagging
include Puppet::Util::Logging
- attr_accessor :resource, :node, :version, :file, :line, :current_values,
:status, :evaluation_time
+ attr_accessor :resource, :node, :file, :line, :current_values, :status,
:evaluation_time
STATES = [:skipped, :failed, :failed_to_restart, :restarted, :changed,
:out_of_sync, :scheduled]
attr_accessor *STATES
@@ -48,7 +48,7 @@ module Puppet
@change_count = 0
@out_of_sync_count = 0
- [:file, :line, :version].each do |attr|
+ [:file, :line].each do |attr|
send(attr.to_s + "=", resource.send(attr))
end
diff --git a/spec/unit/resource/status_spec.rb
b/spec/unit/resource/status_spec.rb
index 08cb99b..22d5fb4 100755
--- a/spec/unit/resource/status_spec.rb
+++ b/spec/unit/resource/status_spec.rb
@@ -10,7 +10,7 @@ describe Puppet::Resource::Status do
@status = Puppet::Resource::Status.new(@resource)
end
- [:node, :version, :file, :line, :current_values, :status,
:evaluation_time].each do |attr|
+ [:node, :file, :line, :current_values, :status, :evaluation_time].each do
|attr|
it "should support #{attr}" do
@status.send(attr.to_s + "=", "foo")
@status.send(attr).should == "foo"
@@ -38,7 +38,7 @@ describe Puppet::Resource::Status do
Puppet::Resource::Status.new(@resource).source_description.should ==
"/my/path"
end
- [:file, :line, :version].each do |attr|
+ [:file, :line].each do |attr|
it "should copy the resource's #{attr}" do
@resource.expects(attr).returns "foo"
Puppet::Resource::Status.new(@resource).send(attr).should == "foo"
--
1.7.2
--
You received this message because you are subscribed to the Google Groups
"Puppet Developers" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/puppet-dev?hl=en.