diff options
author | John McCrae <jmccrae@chef.io> | 2021-05-11 11:44:01 -0700 |
---|---|---|
committer | John McCrae <jmccrae@chef.io> | 2021-05-11 11:55:19 -0700 |
commit | 7b304cd56c2b5659bc518d95dcba1a591c36ee40 (patch) | |
tree | 6cf10c04680da0cacebf894054b366158b404138 | |
parent | 13c204ff3109c47955e6612563f8e84b81ddc864 (diff) | |
download | chef-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.rb | 3 |
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 |