'Return the first pool that matches dev.'

def _find_pool(self, dev_pool):

    for pool in self.pools:
        pool_keys = pool.copy()
        del pool_keys['count']
        del pool_keys['devices']
        if ((len(pool_keys.keys()) == len(dev_pool.keys())) and self._equal_properties(dev_pool, pool_keys, dev_pool.keys())):
            return pool
