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

Add info_all to one_pool helper method used by vcenter

This commit is contained in:
mcabrerizo 2017-06-28 08:38:26 +02:00
parent b2848a0442
commit 6e23515aa2

View File

@ -34,7 +34,12 @@ class VIHelper
def self.one_pool(the_class, exit_if_fail = true)
item = the_class.new(client)
rc = item.info
if item.respond_to?(:info_all)
rc = item.info_all
else
rc = item.info
end
return_if_error(rc, item, exit_if_fail)
end