summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Smith <tsmith@chef.io>2018-09-14 15:35:38 -0700
committerTim Smith <tsmith@chef.io>2018-09-14 15:35:38 -0700
commit0f7ddba9b6349cc55fb9eb3f067d433dedf233e8 (patch)
tree5adb3a3bc399e1cc970949e2761d17027f38c3e5
parent171ab578940db13e2ca94086bcc700148c38c128 (diff)
downloadchef-0f7ddba9b6349cc55fb9eb3f067d433dedf233e8.tar.gz
Rename windows_ad_join's newname to be new_hostname
newname matches powershell, but isn't entirely apparent to non-PowerShell users. We should give it a name that requires no knowledge outside of Chef. This also adds the introduced field, which we use to generate docs. Signed-off-by: Tim Smith <tsmith@chef.io>
-rw-r--r--lib/chef/resource/windows_ad_join.rb5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/chef/resource/windows_ad_join.rb b/lib/chef/resource/windows_ad_join.rb
index 8d864840d3..2399a5d6d5 100644
--- a/lib/chef/resource/windows_ad_join.rb
+++ b/lib/chef/resource/windows_ad_join.rb
@@ -52,8 +52,9 @@ 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 :new_name, String,
- description: "Specifies a new name for the computer in the new domain."
+ property :new_hostname, String,
+ description: "Specifies a new hostname for the computer in the new domain.",
+ introduced: "14.5"
# define this again so we can default it to true. Otherwise failures print the password
property :sensitive, [TrueClass, FalseClass],