From: Pere Diaz Bou Date: Fri, 17 Jun 2022 11:57:53 +0000 (+0200) Subject: mgr/dashboard: more linting X-Git-Tag: v16.2.11~407^2~13 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=3f31e165f4b4f0c3354e0f2a3a2fc8d7595ecaf8;p=ceph.git mgr/dashboard: more linting Signed-off-by: Pere Diaz Bou (cherry picked from commit 27f40514ebc87a05144989be9aa1abb700f49566) --- diff --git a/src/pybind/mgr/dashboard/controllers/rbd.py b/src/pybind/mgr/dashboard/controllers/rbd.py index 40dbb190d4d2..dbb8d880b3af 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())