summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Smith <tsmith@chef.io>2020-04-15 20:40:57 -0700
committerGitHub <noreply@github.com>2020-04-15 20:40:57 -0700
commitac0be4540c34cce4571343c81ecca1a9821b08c9 (patch)
tree0a22ae84a396d04c1f2cb54c3883f58d530eb022
parent40e92b52ac0e274433d139723846fca4847b9ed6 (diff)
parent1f9c8e5103e81469e28f7ada6b4b19597b219144 (diff)
downloadchef-ac0be4540c34cce4571343c81ecca1a9821b08c9.tar.gz
Merge pull request #9668 from chef/parameters
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 51f08809e1..bed661ebaa 100644
--- a/lib/chef/resource/windows_dfs_server.rb
+++ b/lib/chef/resource/windows_dfs_server.rb
@@ -28,7 +28,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,