Method: Deltacloud::Drivers::Openstack::OpenstackDriver#supported_collections

Defined in:
lib/deltacloud/drivers/openstack/openstack_driver.rb

#supported_collections(credentials) ⇒ Object



46
47
48
49
50
51
52
# File 'lib/deltacloud/drivers/openstack/openstack_driver.rb', line 46

def supported_collections(credentials)
  #get the collections as defined by 'capability' and 'respond_to?' blocks
  super_collections = super
  super_collections = super_collections - [Sinatra::Rabbit::BucketsCollection] if regions_for(credentials, "object-store").empty?
  super_collections = super_collections - [Sinatra::Rabbit::StorageVolumesCollection] if regions_for(credentials, "volume").empty?
  super_collections
end