From 6ac683ca1905fbf17dd63c1264609e770439fa7f Mon Sep 17 00:00:00 2001 From: Toshio Kuratomi Date: Thu, 27 Jul 2017 01:53:02 -0700 Subject: [PATCH] Disable pylint check for names existing in modules for test data This test data imports from modules which are only available via PluginLoader for this test case. So pylint doesn't know anything about them --- .../targets/module_utils/library/test_env_override.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/test/integration/targets/module_utils/library/test_env_override.py b/test/integration/targets/module_utils/library/test_env_override.py index e46f8b141ce..94e3051bf29 100644 --- a/test/integration/targets/module_utils/library/test_env_override.py +++ b/test/integration/targets/module_utils/library/test_env_override.py @@ -1,4 +1,7 @@ #!/usr/bin/python +# Most of these names are only available via PluginLoader so pylint doesn't +# know they exist +# pylint: disable=no-name-in-module from ansible.module_utils.basic import AnsibleModule from ansible.module_utils.json_utils import data from ansible.module_utils.mork import data as mork_data