diff options
author | Chase Bolt <cbolt@denirostaff.com> | 2015-10-27 09:44:32 -0700 |
---|---|---|
committer | John Keiser <john@johnkeiser.com> | 2015-10-27 20:33:02 -0700 |
commit | d81a1306abc77d8b69e043f06a14d21547c7fbc6 (patch) | |
tree | e0b89952e5b468d86e1b36c5c24aa60d8ca824e8 /lib/chef/provider.rb | |
parent | de5cbc446e1c20d5b6b6bc88f6a617b4cdefc6bd (diff) | |
download | chef-d81a1306abc77d8b69e043f06a14d21547c7fbc6.tar.gz |
tests and style
Diffstat (limited to 'lib/chef/provider.rb')
-rw-r--r-- | lib/chef/provider.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/chef/provider.rb b/lib/chef/provider.rb index 1e8146428e..d9d6b49894 100644 --- a/lib/chef/provider.rb +++ b/lib/chef/provider.rb @@ -205,7 +205,7 @@ class Chef modified = specified_properties.select { |p| new_resource.send(p) != current_resource.send(p) } if modified.empty? properties_str = if sensitive - '(suppressed sensitive properties)' + specified_properties.join(", ") else specified_properties.map { |p| "#{p}=#{new_resource.send(p).inspect}" }.join(", ") end @@ -236,7 +236,7 @@ class Chef else new_resource.send(property).inspect end - " set #{property.to_s.ljust(property_size)} to #{properties_str}" + default ||= '' + " set #{property.to_s.ljust(property_size)} to #{properties_str}#{default}" end converge_by([ "create #{new_resource.identity}" ] + created, &converge_block) |