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:
parent
85f7b1568c
commit
a47f11a7ec
1 changed files with 1 additions and 1 deletions
|
@ -20,7 +20,7 @@ module Fog
|
||||||
|
|
||||||
def item_list
|
def item_list
|
||||||
data = service.get_organizations.body
|
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.each {|org| service.add_id_from_href!(org)}
|
||||||
orgs
|
orgs
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue