Make pylint happy ♥ qubes.storage.lvm

This commit is contained in:
Bahtiar `kalkin-` Gadimov 2016-09-02 19:46:11 +02:00
parent 8974b2cbc0
commit be48d48e56
No known key found for this signature in database
GPG Key ID: 96ED3C3BA19C3DEE

View File

@ -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