1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00

[vcloud_director] Allow for multiple Orgs, rephrased.

This commit is contained in:
Nick Osborn 2013-09-12 09:46:42 +01:00
parent 85f7b1568c
commit a47f11a7ec

View file

@ -20,7 +20,7 @@ module Fog
def item_list
data = service.get_organizations.body
orgs = data[:Org].is_a?(Array) ? data[:Org] : [data[:Org]]
orgs = data[:Org].is_a?(Hash) ? [data[:Org]] : data[:Org]
orgs.each {|org| service.add_id_from_href!(org)}
orgs
end