]> 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>
Tue, 12 Jul 2022 17:09:02 +0000 (19:09 +0200)
Signed-off-by: Pere Diaz Bou <pdiazbou@redhat.com>
src/pybind/mgr/dashboard/controllers/rbd.py

index 9a499f92016856502df59ccf258291a59e700bec..2f9adf2d9876a31e6cab1432dafb0561995bb216 100644 (file)
@@ -4,10 +4,10 @@
 
 import logging
 import math
-import cherrypy
 from datetime import datetime
 from functools import partial
 
+import cherrypy
 import rbd
 
 from .. import mgr
@@ -84,7 +84,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 = {}
@@ -93,7 +92,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())