    # File lib/fog/libvirt/requests/compute/list_pools.rb, line 5
            def list_pools(filter = { })
              data=[]
              if filter.has_key?(:name)
                data << find_pool_by_name(filter[:name])
              elsif filter.has_key?(:uuid)
                data << find_pool_by_uuid(filter[:uuid])
              else
                (client.list_storage_pools + client.list_defined_storage_pools).each do |name|
                  data << find_pool_by_name(name)
                end
              end
              data.compact
            end