summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn McCrae <jmccrae@chef.io>2021-05-11 11:44:01 -0700
committerJohn McCrae <jmccrae@chef.io>2021-05-11 11:55:19 -0700
commit7b304cd56c2b5659bc518d95dcba1a591c36ee40 (patch)
tree6cf10c04680da0cacebf894054b366158b404138
parent13c204ff3109c47955e6612563f8e84b81ddc864 (diff)
downloadchef-7b304cd56c2b5659bc518d95dcba1a591c36ee40.tar.gz
losing the will to live here with this update
Signed-off-by: John McCrae <jmccrae@chef.io>
-rw-r--r--lib/chef/resource/hostname.rb3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/chef/resource/hostname.rb b/lib/chef/resource/hostname.rb
index b313f8e1c8..c57173024e 100644
--- a/lib/chef/resource/hostname.rb
+++ b/lib/chef/resource/hostname.rb
@@ -104,8 +104,7 @@ class Chef
end
def is_domain_joined?
- powershell_exec!("(Get-WmiObject -Class Win32_ComputerSystem).PartofDomain").result
- # raise "Failed to check if the system is joined to the domain #{new_resource.domain_name}: #{node_domain.errors}}" if node_domain.error?
+ powershell_exec!("(Get-WmiObject -Class Win32_ComputerSystem).PartofDomain").result
end
action :set, description: "Sets the node's hostname" do