]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr/dashboard: more linting
authorPere Diaz Bou <pdiazbou@redhat.com>
Fri, 17 Jun 2022 11:57:53 +0000 (13:57 +0200)
committerPere Diaz Bou <pdiazbou@redhat.com>
Thu, 14 Jul 2022 15:26:17 +0000 (17:26 +0200)
Signed-off-by: Pere Diaz Bou <pdiazbou@redhat.com>
(cherry picked from commit 27f40514ebc87a05144989be9aa1abb700f49566)

src/pybind/mgr/dashboard/controllers/rbd.py

index 40dbb190d4d2195c2b2bfc7dbb9e5703822bffc6..dbb8d880b3afe77b49ee30214228de68360e4a4a 100644 (file)
@@ -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())