Skip to content

Commit

Permalink
Fix more current_value vs. current_resource
Browse files Browse the repository at this point in the history
Signed-off-by: Tim Smith <tsmith@chef.io>
  • Loading branch information
tas50 committed Jul 6, 2018
1 parent 67ffe01 commit 31fb0f7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions resources/node.rb
Expand Up @@ -49,8 +49,8 @@

action :create do
converge_if_changed do
if current_value
if current_value.data != new_resource.data
if current_resource
if current_resource.data != new_resource.data
converge_by "Updating #{new_resource.node_path} node" do
result = zk.set(path: new_resource.node_path, data: new_resource.data)[:rc]

Expand All @@ -63,7 +63,7 @@
:acl_digest,
:acl_ip,
:acl_sasl,
].any? { |s| current_value.send(s) != new_resource.send(s) }
].any? { |s| current_resource.send(s) != new_resource.send(s) }
converge_by "Setting #{new_resource.node_path} acls" do
result = zk.set_acl(path: new_resource.node_path, acl: compile_acls)[:rc]

Expand Down

0 comments on commit 31fb0f7

Please sign in to comment.