In this particular case, the missing variables are being
injected in the code namespace. So, in order to silence
pylint (and the Pydev code analyzer), add the appropriate
comments and tags.

Signed-off-by: Lucas Meneghel Rodrigues <[email protected]>
---
 server/hosts/factory.py | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/server/hosts/factory.py b/server/hosts/factory.py
index 3c7b546..ed5a11a 100644
--- a/server/hosts/factory.py
+++ b/server/hosts/factory.py
@@ -15,8 +15,10 @@ def create_host(
     netconsole=False, **args):
     # parse out the profile up-front, if it's there, or else console monitoring
     # will not work
-    hostname, args['user'], args['password'], args['port'], args['profile'] = \
-            server_utils.parse_machine(hostname, ssh_user, ssh_pass, ssh_port)
+    # Here, ssh_user, ssh_pass and ssh_port are injected in the namespace
+    # pylint: disable=E0602
+    hostname, args['user'], args['password'], args['port'], args['profile'] = (
+            server_utils.parse_machine(hostname, ssh_user, ssh_pass, 
ssh_port))# @UndefinedVariable
 
     # by default assume we're using SSH support
     if SSH_ENGINE == 'paramiko':
-- 
1.8.1.4

_______________________________________________
Autotest-kernel mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/autotest-kernel

Reply via email to