diff options
author | Lamont Granquist <lamont@scriptkiddie.org> | 2016-10-31 11:05:02 -0700 |
---|---|---|
committer | Lamont Granquist <lamont@scriptkiddie.org> | 2016-10-31 11:05:02 -0700 |
commit | cbd6420c47bdefb39d676e1c054d7da041d102ce (patch) | |
tree | 51deae85a8ce8eb456a20e6bc25af8cab211f6ac /lib/chef/node | |
parent | e57e29b96b75ff7fc04abb7f9db73920b2a5894a (diff) | |
download | chef-cbd6420c47bdefb39d676e1c054d7da041d102ce.tar.gz |
fix existing specs
Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
Diffstat (limited to 'lib/chef/node')
-rw-r--r-- | lib/chef/node/attribute_collections.rb | 6 | ||||
-rw-r--r-- | lib/chef/node/mixin/state_tracking.rb | 1 |
2 files changed, 5 insertions, 2 deletions
diff --git a/lib/chef/node/attribute_collections.rb b/lib/chef/node/attribute_collections.rb index 5c17c81fc3..694b5fbc3a 100644 --- a/lib/chef/node/attribute_collections.rb +++ b/lib/chef/node/attribute_collections.rb @@ -34,7 +34,6 @@ class Chef :compact!, :default=, :default_proc=, - :delete, :delete_at, :delete_if, :fill, @@ -69,6 +68,11 @@ class Chef end end + def delete(key, &block) + send_reset_cache(__path__, key) + super + end + def initialize(data = []) super(data) map! { |e| convert_value(e) } diff --git a/lib/chef/node/mixin/state_tracking.rb b/lib/chef/node/mixin/state_tracking.rb index 5b80971bf1..469d4d300f 100644 --- a/lib/chef/node/mixin/state_tracking.rb +++ b/lib/chef/node/mixin/state_tracking.rb @@ -68,7 +68,6 @@ class Chef private def send_attribute_changed_event(next_path, value) - puts "no node" unless __node__ if __node__ && __node__.run_context && __node__.run_context.events __node__.run_context.events.attribute_changed(__precedence__, next_path, value) end |