1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-20 10:50:08 +03:00

B #5571: fix xml list output (#1523)

This commit is contained in:
Alejandro Huertas Herrero 2021-10-13 18:27:20 +02:00 committed by GitHub
parent 800054de35
commit 297dab3510
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -616,10 +616,9 @@ EOT
page = ""
if options[:xml]
pool.each {|e|
elements += 1
page << e.to_xml(true) << "\n"
}
elements += 1
page << pool.to_xml(true)
else
pname = pool.pool_name
ename = pool.element_name