summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDerek Groh <derekgroh@gmail.com>2018-09-13 10:34:54 -0500
committerDerek Groh <derekgroh@gmail.com>2018-09-13 10:34:59 -0500
commit68959ae508dc6d2d616b34693c07d38d83f6dddd (patch)
tree8ca96d20d9abe9db1beeb80d7c942a115d155a59
parent8ae6fde12697e1e578dbeb9855b256ca39269124 (diff)
downloadchef-68959ae508dc6d2d616b34693c07d38d83f6dddd.tar.gz
use ruby naming; newname to new_name
Signed-off-by: Derek Groh <derekgroh@github.io>
-rw-r--r--lib/chef/resource/windows_ad_join.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/chef/resource/windows_ad_join.rb b/lib/chef/resource/windows_ad_join.rb
index 29abadb77b..8d864840d3 100644
--- a/lib/chef/resource/windows_ad_join.rb
+++ b/lib/chef/resource/windows_ad_join.rb
@@ -52,7 +52,7 @@ class Chef
description: "Controls the system reboot behavior post domain joining. Reboot immediately, after the Chef run completes, or never. Note that a reboot is necessary for changes to take effect.",
default: :immediate
- property :newname, String,
+ property :new_name, String,
description: "Specifies a new name for the computer in the new domain."
# define this again so we can default it to true. Otherwise failures print the password
@@ -67,7 +67,7 @@ class Chef
cmd << "$credential = New-Object System.Management.Automation.PSCredential (\"#{new_resource.domain_user}\",$pswd);"
cmd << "Add-Computer -DomainName #{new_resource.domain_name} -Credential $credential"
cmd << " -OUPath \"#{new_resource.ou_path}\"" if new_resource.ou_path
- cmd << " -NewName \"#{new_resource.newname}\"" if new_resource.newname
+ cmd << " -NewName \"#{new_resource.new_name}\"" if new_resource.new_name
cmd << " -Force"
converge_by("join Active Directory domain #{new_resource.domain_name}") do