summaryrefslogtreecommitdiff
path: root/lib/chef/resource/windows_ad_join.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/chef/resource/windows_ad_join.rb')
-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