diff --git a/lib/fog/openstack/models/volume/volumes.rb b/lib/fog/openstack/models/volume/volumes.rb index 47faf8a4f..8924b5214 100644 --- a/lib/fog/openstack/models/volume/volumes.rb +++ b/lib/fog/openstack/models/volume/volumes.rb @@ -12,13 +12,14 @@ module Fog load(service.list_volumes(detailed).body['volumes']) end - def find_by_id(volume_id) + def get(volume_id) if volume = service.get_volume_details(volume_id).body['volume'] new(volume) end rescue Fog::Volume::OpenStack::NotFound nil end + alias_method :find_by_id, :get end end