Make pylint happy ♥ qubes.storage.lvm
This commit is contained in:
parent
8974b2cbc0
commit
be48d48e56
@ -325,9 +325,9 @@ def init_cache(log=logging.getLogger('qube.storage.lvm')):
|
|||||||
|
|
||||||
result = {}
|
result = {}
|
||||||
|
|
||||||
for l in out.splitlines():
|
for line in out.splitlines():
|
||||||
l = l.strip()
|
line = line.strip()
|
||||||
pool_name, name, size, usage_percent = l.split(',', 3)
|
pool_name, name, size, usage_percent = line.split(',', 3)
|
||||||
if '' in [pool_name, name, size, usage_percent]:
|
if '' in [pool_name, name, size, usage_percent]:
|
||||||
continue
|
continue
|
||||||
name = pool_name + "/" + name
|
name = pool_name + "/" + name
|
||||||
@ -429,5 +429,5 @@ def qubes_lvm(cmd, log=logging.getLogger('qube.storage.lvm')):
|
|||||||
return True
|
return True
|
||||||
|
|
||||||
|
|
||||||
def reset_cache(log=logging.getLogger('qube.storage.lvm')):
|
def reset_cache():
|
||||||
qubes.storage.lvm.size_cache = init_cache
|
qubes.storage.lvm.size_cache = init_cache
|
||||||
|
Loading…
Reference in New Issue
Block a user