Story#109070142 - Nameservers in epp includes several ip4 and ip6

This commit is contained in:
Vladimir Krylov 2015-11-30 20:52:06 +02:00
parent 91b65e2d61
commit 539a40b34c

View file

@ -27,8 +27,8 @@ xml.epp_head do
@nameservers.each do |x| @nameservers.each do |x|
xml.tag!('domain:hostAttr') do xml.tag!('domain:hostAttr') do
xml.tag!('domain:hostName', x.hostname) xml.tag!('domain:hostName', x.hostname)
xml.tag!('domain:hostAddr', x.ipv4, 'ip' => 'v4') if x.ipv4.present? x.ipv4.each{|ip| xml.tag!('domain:hostAddr', ip, 'ip' => 'v4') } if x.ipv4.present?
xml.tag!('domain:hostAddr', x.ipv6, 'ip' => 'v6') if x.ipv6.present? x.ipv6.each{|ip| xml.tag!('domain:hostAddr', ip, 'ip' => 'v6') } if x.ipv6.present?
end end
end end
end end