From: Kefu Chai Date: Tue, 20 Oct 2020 10:14:40 +0000 (+0800) Subject: pybind/mgr/dashboard: reindent to appease lint X-Git-Tag: v16.1.0~810^2~3 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=69fa3b9add583bf75d39f062062cf0db25da7635;p=ceph.git pybind/mgr/dashboard: reindent to appease lint silences warning like: ************* Module dashboard.services.tcmu_service services/tcmu_service.py:64:0: C0330: Wrong continued indentation (add 18 spaces). or [[0, 0]])[-1][1] / 1000000000 ^ | (bad-continuation) Signed-off-by: Kefu Chai --- diff --git a/src/pybind/mgr/dashboard/services/tcmu_service.py b/src/pybind/mgr/dashboard/services/tcmu_service.py index 565e3dce09306..3ded28f9d2d68 100644 --- a/src/pybind/mgr/dashboard/services/tcmu_service.py +++ b/src/pybind/mgr/dashboard/services/tcmu_service.py @@ -61,7 +61,7 @@ class TcmuService(object): perf_key = "{}lock_acquired_time".format(perf_key_prefix) lock_acquired_time = (mgr.get_counter( 'tcmu-runner', service_id, perf_key)[perf_key] - or [[0, 0]])[-1][1] / 1000000000 + or [[0, 0]])[-1][1] / 1000000000 if lock_acquired_time > image.get('optimized_since', 0): image['optimized_daemon'] = hostname image['optimized_since'] = lock_acquired_time