summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Keiser <john@johnkeiser.com>2015-05-26 21:41:41 -0700
committerJohn Keiser <john@johnkeiser.com>2015-05-28 13:27:43 -0700
commit9281a2b8e6fbd2a493d80038af8154b777d82cdd (patch)
tree93102f69e9f48533558b30589a9e5b809c8b1cca
parent34f496a1f249e26e0c79884a281faa8384018570 (diff)
downloadchef-9281a2b8e6fbd2a493d80038af8154b777d82cdd.tar.gz
Un-deprecate node writing
-rw-r--r--lib/chef/client.rb6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/chef/client.rb b/lib/chef/client.rb
index d4723b683f..9cd4d9dbd7 100644
--- a/lib/chef/client.rb
+++ b/lib/chef/client.rb
@@ -80,6 +80,9 @@ class Chef
def node
run_status.node
end
+ def node=(value)
+ run_status.node = value
+ end
#
# The ohai system used by this client.
@@ -503,7 +506,7 @@ class Chef
Chef::Log.warn("Skipping final node save because override_runlist was given")
else
Chef::Log.debug("Saving the current state of node #{node_name}")
- @node.save
+ node.save
end
end
@@ -786,7 +789,6 @@ class Chef
#
include Chef::Mixin::Deprecation
- deprecated_attr_writer :node, "There is no alternative. Leave node alone!"
deprecated_attr_writer :ohai, "There is no alternative. Leave ohai alone!"
deprecated_attr_writer :rest, "There is no alternative. Leave rest alone!"
deprecated_attr :runner, "There is no alternative. Leave runner alone!"