diff options
author | Tim Smith <tsmith@chef.io> | 2020-04-15 09:58:40 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-15 09:58:40 -0700 |
commit | e810cf4ddd4e6619f82dcea0c6d6cfecfb8ae469 (patch) | |
tree | a13fd3e031d093353c9a7cdb65023a50a3192537 | |
parent | fb43c19e2c827cae458578386349651ec8b5588a (diff) | |
parent | d664b4734ba1a93bdc3f59511eb9db0a45813d00 (diff) | |
download | chef-e810cf4ddd4e6619f82dcea0c6d6cfecfb8ae469.tar.gz |
Merge pull request #9664 from chef/they_are_properties
Replace a few uses of attributes / parameters in messaging with properties
-rw-r--r-- | lib/chef/mixin/securable.rb | 8 | ||||
-rw-r--r-- | lib/chef/resource/windows_dfs_server.rb | 2 |
2 files changed, 5 insertions, 5 deletions
diff --git a/lib/chef/mixin/securable.rb b/lib/chef/mixin/securable.rb index a4fd7aded9..c63e644604 100644 --- a/lib/chef/mixin/securable.rb +++ b/lib/chef/mixin/securable.rb @@ -129,22 +129,22 @@ class Chef raise ArgumentError, "permissions flags must be positive and <= 32 bits (#{permission})" end elsif !(%i{full_control modify read_execute read write}.include?(permission.to_sym)) - raise ArgumentError, "permissions parameter must be :full_control, :modify, :read_execute, :read, :write or an integer representing Windows permission flags" + raise ArgumentError, "permissions property must be :full_control, :modify, :read_execute, :read, :write or an integer representing Windows permission flags" end end [ principals ].flatten.each do |principal| unless principal.is_a?(String) - raise ArgumentError, "principals parameter must be a string or array of strings representing usernames" + raise ArgumentError, "principals property must be a string or array of strings representing usernames" end end if input[:applies_to_children] == false if input[:applies_to_self] == false - raise ArgumentError, "'rights' attribute must specify either :applies_to_children or :applies_to_self." + raise ArgumentError, "'rights' property must specify either :applies_to_children or :applies_to_self." end if input[:one_level_deep] == true - raise ArgumentError, "'rights' attribute specified :one_level_deep without specifying :applies_to_children." + raise ArgumentError, "'rights' property specified :one_level_deep without specifying :applies_to_children." end end rights ||= [] diff --git a/lib/chef/resource/windows_dfs_server.rb b/lib/chef/resource/windows_dfs_server.rb index 4afb938a5a..2b9dfdcdd3 100644 --- a/lib/chef/resource/windows_dfs_server.rb +++ b/lib/chef/resource/windows_dfs_server.rb @@ -27,7 +27,7 @@ class Chef introduced "15.0" property :use_fqdn, [TrueClass, FalseClass], - description: "Indicates whether a DFS namespace server uses FQDNs in referrals. If this parameter has a value of true, the server uses FQDNs in referrals. If this parameter has a value of false, the server uses NetBIOS names.", + description: "Indicates whether a DFS namespace server uses FQDNs in referrals. If this property is set to true, the server uses FQDNs in referrals. If this property is set to false then the server uses NetBIOS names.", default: false property :ldap_timeout_secs, Integer, |