From ce93d225ebd9c37e98d37fa830d00d19e2d3da3f Mon Sep 17 00:00:00 2001 From: Akos Vandra Date: Tue, 8 Nov 2016 19:31:30 +0100 Subject: Fix converge_if_changed (#5508) sensitive is the property of the resource, not the provider. --- lib/chef/provider.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/chef/provider.rb b/lib/chef/provider.rb index 7cfddba0cb..399a26aca0 100644 --- a/lib/chef/provider.rb +++ b/lib/chef/provider.rb @@ -205,7 +205,7 @@ class Chef specified_properties = properties.select { |property| new_resource.property_is_set?(property) } modified = specified_properties.select { |p| new_resource.send(p) != current_resource.send(p) } if modified.empty? - properties_str = if sensitive + properties_str = if new_resource.sensitive specified_properties.join(", ") else specified_properties.map { |p| "#{p}=#{new_resource.send(p).inspect}" }.join(", ") @@ -217,7 +217,7 @@ class Chef # Print the pretty green text and run the block property_size = modified.map { |p| p.size }.max modified.map! do |p| - properties_str = if sensitive + properties_str = if new_resource.sensitive "(suppressed sensitive property)" else "#{new_resource.send(p).inspect} (was #{current_resource.send(p).inspect})" @@ -232,7 +232,7 @@ class Chef property_size = properties.map { |p| p.size }.max created = properties.map do |property| default = " (default value)" unless new_resource.property_is_set?(property) - properties_str = if sensitive + properties_str = if new_resource.sensitive "(suppressed sensitive property)" else new_resource.send(property).inspect -- cgit v1.2.1