# File lib/openstack/identity/connection_v2.rb, line 19 def find_tenant_by_name(name) response = @connection.req('GET', "/tenants?name=#{name}") OpenStack::Identity::Tenant.new(JSON.parse(response.body)['tenant']) end