summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Smith <tsmith@chef.io>2020-04-15 09:58:40 -0700
committerGitHub <noreply@github.com>2020-04-15 09:58:40 -0700
commite810cf4ddd4e6619f82dcea0c6d6cfecfb8ae469 (patch)
treea13fd3e031d093353c9a7cdb65023a50a3192537
parentfb43c19e2c827cae458578386349651ec8b5588a (diff)
parentd664b4734ba1a93bdc3f59511eb9db0a45813d00 (diff)
downloadchef-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.rb8
-rw-r--r--lib/chef/resource/windows_dfs_server.rb2
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,