Story#109070142 - Nameservers domain depp joins received nameserver ids

This commit is contained in:
Vladimir Krylov 2015-11-30 21:28:33 +02:00
parent fdd1ae6aef
commit c2b5b24975

View file

@ -136,8 +136,6 @@ module Depp
# rubocop:disable Metrics/MethodLength
# rubocop:disable Metrics/AbcSize
def construct_params_from_server_data(data)
Rails.logger.fatal("NNNNN: #{data.class}")
Rails.logger.fatal("NNNNN: #{data}")
ret = default_params
ret[:name] = data.css('name').text
ret[:registrant] = data.css('registrant').text
@ -147,7 +145,6 @@ module Depp
end
data.css('hostAttr').each_with_index do |x, i|
Rails.logger.fatal("QQQQQ: #{x.css('hostAddr[ip="v4"]')}")
ret[:nameservers_attributes][i] = {
hostname: x.css('hostName').text,
ipv4: Array(x.css('hostAddr[ip="v4"]')).map(&:text).join(','),