mirror of
https://github.com/internetee/registry.git
synced 2025-07-22 10:45:58 +02:00
Story#109070142 - Nameservers domain depp joins received nameserver ids
This commit is contained in:
parent
fdd1ae6aef
commit
c2b5b24975
1 changed files with 0 additions and 3 deletions
|
@ -136,8 +136,6 @@ module Depp
|
||||||
# rubocop:disable Metrics/MethodLength
|
# rubocop:disable Metrics/MethodLength
|
||||||
# rubocop:disable Metrics/AbcSize
|
# rubocop:disable Metrics/AbcSize
|
||||||
def construct_params_from_server_data(data)
|
def construct_params_from_server_data(data)
|
||||||
Rails.logger.fatal("NNNNN: #{data.class}")
|
|
||||||
Rails.logger.fatal("NNNNN: #{data}")
|
|
||||||
ret = default_params
|
ret = default_params
|
||||||
ret[:name] = data.css('name').text
|
ret[:name] = data.css('name').text
|
||||||
ret[:registrant] = data.css('registrant').text
|
ret[:registrant] = data.css('registrant').text
|
||||||
|
@ -147,7 +145,6 @@ module Depp
|
||||||
end
|
end
|
||||||
|
|
||||||
data.css('hostAttr').each_with_index do |x, i|
|
data.css('hostAttr').each_with_index do |x, i|
|
||||||
Rails.logger.fatal("QQQQQ: #{x.css('hostAddr[ip="v4"]')}")
|
|
||||||
ret[:nameservers_attributes][i] = {
|
ret[:nameservers_attributes][i] = {
|
||||||
hostname: x.css('hostName').text,
|
hostname: x.css('hostName').text,
|
||||||
ipv4: Array(x.css('hostAddr[ip="v4"]')).map(&:text).join(','),
|
ipv4: Array(x.css('hostAddr[ip="v4"]')).map(&:text).join(','),
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue