mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
[vcloud_director] Allow for multiple Orgs.
This commit is contained in:
parent
f1323c1986
commit
85f7b1568c
1 changed files with 4 additions and 4 deletions
|
@ -20,12 +20,12 @@ module Fog
|
|||
|
||||
def item_list
|
||||
data = service.get_organizations.body
|
||||
org = data[:Org] # there is only a single Org
|
||||
service.add_id_from_href!(org)
|
||||
[org]
|
||||
orgs = data[:Org].is_a?(Array) ? data[:Org] : [data[:Org]]
|
||||
orgs.each {|org| service.add_id_from_href!(org)}
|
||||
orgs
|
||||
end
|
||||
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Reference in a new issue