pools = [obj for obj in conn.listAllStoragePools() if pool is None or obj.name() == pool]