epp-client-hostmaster 0.2.5 → 0.2.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -27,8 +27,8 @@ module EPPClient
|
|
27
27
|
|
28
28
|
def domain_nss_xml(xml, nss)
|
29
29
|
xml.domain :ns do
|
30
|
-
nss.
|
31
|
-
|
30
|
+
if nss.first.is_a? Hash
|
31
|
+
nss.each do |ns|
|
32
32
|
xml.domain :hostAttr do
|
33
33
|
xml.domain :hostName, ns[:hostName]
|
34
34
|
if ns.key?(:hostAddrv4)
|
@@ -42,7 +42,9 @@ module EPPClient
|
|
42
42
|
end
|
43
43
|
end
|
44
44
|
end
|
45
|
-
|
45
|
+
end
|
46
|
+
else
|
47
|
+
nss.each do |ns|
|
46
48
|
xml.domain :hostObj, ns
|
47
49
|
end
|
48
50
|
end
|