Remove unused import (#80875)

Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
pull/80879/head
Abhijeet Kasurde 2 years ago committed by GitHub
parent 09b4cae4fb
commit c9f76f6d49
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -161,11 +161,7 @@ test/integration/targets/win_script/files/test_script_with_splatting.ps1 pslint:
test/lib/ansible_test/_data/requirements/sanity.pslint.ps1 pslint:PSCustomUseLiteralPath # Uses wildcards on purpose test/lib/ansible_test/_data/requirements/sanity.pslint.ps1 pslint:PSCustomUseLiteralPath # Uses wildcards on purpose
test/lib/ansible_test/_util/target/setup/ConfigureRemotingForAnsible.ps1 pslint:PSCustomUseLiteralPath test/lib/ansible_test/_util/target/setup/ConfigureRemotingForAnsible.ps1 pslint:PSCustomUseLiteralPath
test/lib/ansible_test/_util/target/setup/requirements.py replace-urlopen test/lib/ansible_test/_util/target/setup/requirements.py replace-urlopen
test/support/integration/plugins/modules/sefcontext.py pylint:unused-import
test/support/integration/plugins/modules/zypper.py pylint:unused-import
test/support/network-integration/collections/ansible_collections/ansible/netcommon/plugins/module_utils/network/common/utils.py pylint:unused-import
test/support/network-integration/collections/ansible_collections/ansible/netcommon/plugins/connection/network_cli.py pylint:pointless-string-statement test/support/network-integration/collections/ansible_collections/ansible/netcommon/plugins/connection/network_cli.py pylint:pointless-string-statement
test/support/windows-integration/plugins/action/win_reboot.py pylint:unused-import
test/support/integration/plugins/modules/timezone.py pylint:disallowed-name test/support/integration/plugins/modules/timezone.py pylint:disallowed-name
test/support/network-integration/collections/ansible_collections/ansible/netcommon/plugins/module_utils/compat/ipaddress.py no-unicode-literals test/support/network-integration/collections/ansible_collections/ansible/netcommon/plugins/module_utils/compat/ipaddress.py no-unicode-literals
test/support/network-integration/collections/ansible_collections/ansible/netcommon/plugins/module_utils/network/common/facts/facts.py pylint:unnecessary-comprehension test/support/network-integration/collections/ansible_collections/ansible/netcommon/plugins/module_utils/network/common/facts/facts.py pylint:unnecessary-comprehension

@ -105,8 +105,6 @@ RETURN = r'''
# Default return values # Default return values
''' '''
import os
import subprocess
import traceback import traceback
from ansible.module_utils.basic import AnsibleModule, missing_required_lib from ansible.module_utils.basic import AnsibleModule, missing_required_lib

@ -202,7 +202,6 @@ EXAMPLES = '''
import xml import xml
import re import re
from xml.dom.minidom import parseString as parseXML from xml.dom.minidom import parseString as parseXML
from ansible.module_utils.six import iteritems
from ansible.module_utils.common.text.converters import to_native from ansible.module_utils.common.text.converters import to_native
# import module snippets # import module snippets

@ -42,20 +42,6 @@ from ansible.module_utils.six import iteritems, string_types
from ansible.module_utils import basic from ansible.module_utils import basic
from ansible.module_utils.parsing.convert_bool import boolean from ansible.module_utils.parsing.convert_bool import boolean
# Backwards compatibility for 3rd party modules
# TODO(pabelanger): With move to ansible.netcommon, we should clean this code
# up and have modules import directly themself.
from ansible.module_utils.common.network import ( # noqa: F401
to_bits,
is_netmask,
is_masklen,
to_netmask,
to_masklen,
to_subnet,
to_ipv6_network,
VALID_MASKS,
)
try: try:
from jinja2 import Environment, StrictUndefined from jinja2 import Environment, StrictUndefined
from jinja2.exceptions import UndefinedError from jinja2.exceptions import UndefinedError

@ -6,7 +6,6 @@ __metaclass__ = type
from datetime import datetime from datetime import datetime
from ansible.errors import AnsibleError
from ansible.module_utils.common.text.converters import to_native from ansible.module_utils.common.text.converters import to_native
from ansible.plugins.action import ActionBase from ansible.plugins.action import ActionBase
from ansible.plugins.action.reboot import ActionModule as RebootActionModule from ansible.plugins.action.reboot import ActionModule as RebootActionModule

Loading…
Cancel
Save