diskimage-builder/diskimage_builder/tests/functional
Andreas Florath f314df12c3 Refactor: use lazy logging
As described in pep282 [1], the variable part of a log message
should be passed in via parameter.  In this case the parameters
are evaluated only when they need to be.

This patch fixes (unifies) this for DIB.

A check using pylint was added that this kind of passing parameters to
the logging subsystem is enforced in future.  As a blueprint a similar
(stripped-down) approach from cinder [2] was used.

[1] https://www.python.org/dev/peps/pep-0282/
[2] https://github.com/openstack/cinder/blob/master/tox.ini

Change-Id: I2d7bcc863e4e9583d82d204438b3c781ac99824e
Signed-off-by: Andreas Florath <andreas@florath.net>
2017-05-30 14:39:58 +10:00
..
__init__.py Refactor: block-device handling (partitioning) 2017-01-24 19:59:10 +00:00
test_blockdevice_mbr.py Create and use plugin/node abstract classes 2017-05-26 11:48:11 +10:00
test_blockdevice_utils.py Add sort_mount_point method 2017-05-05 17:29:53 +00:00
test_blockdevice.py Refactor: use lazy logging 2017-05-30 14:39:58 +10:00