From be48d48e56b5350ef5a923971e641615f2a536b9 Mon Sep 17 00:00:00 2001 From: Bahtiar `kalkin-` Gadimov Date: Fri, 2 Sep 2016 19:46:11 +0200 Subject: [PATCH] =?UTF-8?q?Make=20pylint=20happy=20=E2=99=A5=20qubes.stora?= =?UTF-8?q?ge.lvm?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- qubes/storage/lvm.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/qubes/storage/lvm.py b/qubes/storage/lvm.py index dddb852f..e105ef15 100644 --- a/qubes/storage/lvm.py +++ b/qubes/storage/lvm.py @@ -325,9 +325,9 @@ def init_cache(log=logging.getLogger('qube.storage.lvm')): result = {} - for l in out.splitlines(): - l = l.strip() - pool_name, name, size, usage_percent = l.split(',', 3) + for line in out.splitlines(): + line = line.strip() + pool_name, name, size, usage_percent = line.split(',', 3) if '' in [pool_name, name, size, usage_percent]: continue name = pool_name + "/" + name @@ -429,5 +429,5 @@ def qubes_lvm(cmd, log=logging.getLogger('qube.storage.lvm')): return True -def reset_cache(log=logging.getLogger('qube.storage.lvm')): +def reset_cache(): qubes.storage.lvm.size_cache = init_cache