block device: update variable name

New versions of flake8 fail as "l" can be confused for "1" apparently
(E741) ... not sure I totally agree but since it's only one instance,
update it.

Change-Id: Ic5c47867facd56b53cc6534da4ae3a345c516202
This commit is contained in:
Ian Wienand 2020-05-13 06:20:31 +10:00
parent d3c7d2d4b1
commit 9080d04923

View File

@ -108,8 +108,9 @@ class BlockDeviceState(collections.MutableMapping):
# This is pretty good for human consumption, but maybe a bit
# verbose.
nice_output = pprint.pformat(self.state, width=40)
for l in nice_output.split('\n'):
logger.debug('{0:{fill}{align}50}'.format(l, fill=' ', align='<'))
for line in nice_output.split('\n'):
logger.debug('{0:{fill}{align}50}'.format(
line, fill=' ', align='<'))
class BlockDevice(object):