From 3f31e165f4b4f0c3354e0f2a3a2fc8d7595ecaf8 Mon Sep 17 00:00:00 2001 From: Pere Diaz Bou Date: Fri, 17 Jun 2022 13:57:53 +0200 Subject: [PATCH] mgr/dashboard: more linting Signed-off-by: Pere Diaz Bou (cherry picked from commit 27f40514ebc87a05144989be9aa1abb700f49566) --- src/pybind/mgr/dashboard/controllers/rbd.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/pybind/mgr/dashboard/controllers/rbd.py b/src/pybind/mgr/dashboard/controllers/rbd.py index 40dbb190d4d..dbb8d880b3a 100644 --- a/src/pybind/mgr/dashboard/controllers/rbd.py +++ b/src/pybind/mgr/dashboard/controllers/rbd.py @@ -5,10 +5,10 @@ from __future__ import absolute_import import logging import math -import cherrypy from datetime import datetime from functools import partial +import cherrypy import rbd from .. import mgr @@ -85,7 +85,6 @@ class Rbd(RESTController): else: pools = [p['pool_name'] for p in CephService.get_pool_list('rbd')] - result = [] images, num_total_images = RbdService.rbd_pool_list(pools, offset=offset, limit=limit) cherrypy.response.headers['X-Total-Count'] = num_total_images pool_result = {} @@ -94,7 +93,7 @@ class Rbd(RESTController): if pool not in pool_result: pool_result[pool] = {'value': [], 'pool_name': image['pool']} pool_result[pool]['value'].append(image) - + images[i]['configuration'] = RbdConfiguration( pool, image['namespace'], image['name']).list() return list(pool_result.values()) -- 2.47.3