diff --git a/lib/fog/vcloud_director/models/compute/organizations.rb b/lib/fog/vcloud_director/models/compute/organizations.rb index dbb1728b1..cfe20dfcf 100644 --- a/lib/fog/vcloud_director/models/compute/organizations.rb +++ b/lib/fog/vcloud_director/models/compute/organizations.rb @@ -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