# File lib/openstack/volume/connection.rb, line 124
    def get_pools(details = true)
      path = details ? "/scheduler-stats/get_pools?detail=true" : "/scheduler-stats/get_pools"
      response = @connection.req('GET', path)
      OpenStack::Exception.raise_exception(response) unless response.code.match(/^20.$/)
      JSON.parse(response.body)['pools']
    end