[virt-tools-list] [virt-bootstrap 2/4] pylint: Specify string format as parameters

Radostin Stoyanov rstoyanov1 at gmail.com
Sun Aug 4 18:06:01 UTC 2019


Pylint (logging-not-lazy) warning

Specify string format arguments as logging function parameters

Signed-off-by: Radostin Stoyanov <rstoyanov1 at gmail.com>
---
 src/virtBootstrap/virt_bootstrap.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/virtBootstrap/virt_bootstrap.py b/src/virtBootstrap/virt_bootstrap.py
index f70acbd..b486ac3 100755
--- a/src/virtBootstrap/virt_bootstrap.py
+++ b/src/virtBootstrap/virt_bootstrap.py
@@ -151,7 +151,7 @@ def bootstrap(uri, dest,
     if root_password:
         if root_password.startswith('file:'):
             root_password_file = root_password[len('file:'):]
-            logger.debug("Reading root password from file %s" %
+            logger.debug("Reading root password from file %s",
                          root_password_file)
             with open(root_password_file) as pwdfile:
                 root_password = pwdfile.readline().rstrip("\n\r")
-- 
2.21.0




More information about the virt-tools-list mailing list