<commit_before>begin
require 'rubygems'
require 'rest_connection'

domain_controllers = Tag.search('ec2_instance', ["dns:domain=#{node[:ad_tools][:domain_name]}"])
private_ips = []
domain_controllers.each do |s|
  private_ips += [Server.find(s["href"]).settings["private_ip_address"]]
end

node[:ad_tools_dns_list] = private_ips.join(',')
Chef::Log.info("This is the dns list #{node[:ad_tools_dns_list]}")

mnt_utils_set_dns do
  dns_list node[:ad_tools_dns_list]
end

node[:ad_tools_dns_set] = true
rescue LoadError
  raise "The rest_connection ruby gem is required, but not available.  DNS was not set.  Please run a recipe which installs rest_connection, such as utils::install_rest_connection_gem from - https://github.com/rgeyer/cookbooks"
end<commit_msg>Removing begin/rescue block from ad_tools::set_dns for troubleshooting purposes<commit_after>#begin
require 'rubygems'
require 'rest_connection'

domain_controllers = Tag.search('ec2_instance', ["dns:domain=#{node[:ad_tools][:domain_name]}"])
private_ips = []
domain_controllers.each do |s|
  private_ips += [Server.find(s["href"]).settings["private_ip_address"]]
end

node[:ad_tools_dns_list] = private_ips.join(',')
Chef::Log.info("This is the dns list #{node[:ad_tools_dns_list]}")

mnt_utils_set_dns do
  dns_list node[:ad_tools_dns_list]
end

node[:ad_tools_dns_set] = true
#rescue LoadError
#  raise "The rest_connection ruby gem is required, but not available.  DNS was not set.  Please run a recipe which installs rest_connection, such as utils::install_rest_connection_gem from - https://github.com/rgeyer/cookbooks"
#end
{'fraction_non_alphanumeric': 0.12515723270440252, 'fraction_numerical': 0.0012578616352201257, 'mean_word_length': 7.329842931937173, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4653118', 'n_tokens_mistral': 560, 'n_tokens_neox': 560, 'n_words': 124}