summaryrefslogtreecommitdiffstats
path: root/test/support/network-integration
diff options
context:
space:
mode:
authorAbhijeet Kasurde <akasurde@redhat.com>2023-05-24 20:58:42 +0200
committerGitHub <noreply@github.com>2023-05-24 20:58:42 +0200
commit9f4dfff69bfc9f33a487e1c7fee2fbce64c62c9c (patch)
tree089bfd9d062a6f3d2a83be24f72952f862c670e7 /test/support/network-integration
parentRemove unused test files (#80879) (diff)
downloadansible-9f4dfff69bfc9f33a487e1c7fee2fbce64c62c9c.tar.xz
ansible-9f4dfff69bfc9f33a487e1c7fee2fbce64c62c9c.zip
Pylint fixes (#80855)
Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
Diffstat (limited to 'test/support/network-integration')
-rw-r--r--test/support/network-integration/collections/ansible_collections/ansible/netcommon/plugins/connection/network_cli.py1
-rw-r--r--test/support/network-integration/collections/ansible_collections/ansible/netcommon/plugins/module_utils/network/common/facts/facts.py2
-rw-r--r--test/support/network-integration/collections/ansible_collections/cisco/ios/plugins/modules/ios_config.py1
-rw-r--r--test/support/network-integration/collections/ansible_collections/vyos/vyos/plugins/modules/vyos_command.py2
4 files changed, 3 insertions, 3 deletions
diff --git a/test/support/network-integration/collections/ansible_collections/ansible/netcommon/plugins/connection/network_cli.py b/test/support/network-integration/collections/ansible_collections/ansible/netcommon/plugins/connection/network_cli.py
index 68eaa88759..d0d977faa6 100644
--- a/test/support/network-integration/collections/ansible_collections/ansible/netcommon/plugins/connection/network_cli.py
+++ b/test/support/network-integration/collections/ansible_collections/ansible/netcommon/plugins/connection/network_cli.py
@@ -1310,7 +1310,6 @@ class Connection(NetworkConnectionBase):
remote host before triggering timeout exception
:return: None
"""
- """Fetch file over scp/sftp from remote device"""
ssh = self.ssh_type_conn._connect_uncached()
if self.ssh_type == "libssh":
self.ssh_type_conn.fetch_file(source, destination, proto=proto)
diff --git a/test/support/network-integration/collections/ansible_collections/ansible/netcommon/plugins/module_utils/network/common/facts/facts.py b/test/support/network-integration/collections/ansible_collections/ansible/netcommon/plugins/module_utils/network/common/facts/facts.py
index 477d318474..2afa650e43 100644
--- a/test/support/network-integration/collections/ansible_collections/ansible/netcommon/plugins/module_utils/network/common/facts/facts.py
+++ b/test/support/network-integration/collections/ansible_collections/ansible/netcommon/plugins/module_utils/network/common/facts/facts.py
@@ -79,7 +79,7 @@ class FactsBase(object):
self._module.fail_json(
msg="Subset must be one of [%s], got %s"
% (
- ", ".join(sorted([item for item in valid_subsets])),
+ ", ".join(sorted(list(valid_subsets))),
subset,
)
)
diff --git a/test/support/network-integration/collections/ansible_collections/cisco/ios/plugins/modules/ios_config.py b/test/support/network-integration/collections/ansible_collections/cisco/ios/plugins/modules/ios_config.py
index 1ea2af7353..d80261d7df 100644
--- a/test/support/network-integration/collections/ansible_collections/cisco/ios/plugins/modules/ios_config.py
+++ b/test/support/network-integration/collections/ansible_collections/cisco/ios/plugins/modules/ios_config.py
@@ -575,6 +575,7 @@ def main():
)
if running_config.sha1 != base_config.sha1:
+ before, after = "", ""
if module.params["diff_against"] == "intended":
before = running_config
after = base_config
diff --git a/test/support/network-integration/collections/ansible_collections/vyos/vyos/plugins/modules/vyos_command.py b/test/support/network-integration/collections/ansible_collections/vyos/vyos/plugins/modules/vyos_command.py
index 369d58279e..cbfe6d3b08 100644
--- a/test/support/network-integration/collections/ansible_collections/vyos/vyos/plugins/modules/vyos_command.py
+++ b/test/support/network-integration/collections/ansible_collections/vyos/vyos/plugins/modules/vyos_command.py
@@ -192,7 +192,7 @@ def main():
interval = module.params["interval"]
match = module.params["match"]
- for _ in range(retries):
+ for dummy in range(retries):
responses = run_commands(module, commands)
for item in list(conditionals):