Strory#110308584 - hostname error responds in xml way of array

(cherry picked from commit 7c1c065)
This commit is contained in:
Vladimir Krylov 2016-06-10 12:14:05 +03:00
parent ad823391b7
commit f733180f7f
2 changed files with 8 additions and 2 deletions

View file

@ -5,7 +5,13 @@ xml.epp_head do
xml.msg(x[:msg], 'lang' => 'en')
xml.value('xmlns:obj' => 'urn:ietf:params:xml:ns:obj') do
xml.tag!("obj:#{x[:value][:obj]}", x[:value][:val])
if (val = x[:value][:val]).respond_to?(:each)
val.each do |el|
xml.tag!("obj:#{x[:value][:obj]}", el)
end
else
xml.tag!("obj:#{x[:value][:obj]}", val)
end
end if x[:value]
x[:ext_values].each do |y|