diff --git a/lib/ansible/modules/network/check_point/checkpoint_access_layer_facts.py b/lib/ansible/modules/network/check_point/checkpoint_access_layer_facts.py index a7588894606..d88eacf3724 100644 --- a/lib/ansible/modules/network/check_point/checkpoint_access_layer_facts.py +++ b/lib/ansible/modules/network/check_point/checkpoint_access_layer_facts.py @@ -61,8 +61,6 @@ ansible_facts: from ansible.module_utils.basic import AnsibleModule from ansible.module_utils.connection import Connection -from ansible.module_utils.six.moves.urllib.error import HTTPError -import json def get_access_layer(module, connection): diff --git a/lib/ansible/modules/network/check_point/checkpoint_access_rule_facts.py b/lib/ansible/modules/network/check_point/checkpoint_access_rule_facts.py index 6c3e8858f35..111fb1db8fe 100644 --- a/lib/ansible/modules/network/check_point/checkpoint_access_rule_facts.py +++ b/lib/ansible/modules/network/check_point/checkpoint_access_rule_facts.py @@ -68,8 +68,6 @@ ansible_facts: from ansible.module_utils.basic import AnsibleModule from ansible.module_utils.connection import Connection -from ansible.module_utils.six.moves.urllib.error import HTTPError -import json def get_access_rule(module, connection): diff --git a/lib/ansible/modules/network/check_point/checkpoint_host.py b/lib/ansible/modules/network/check_point/checkpoint_host.py index cc683f27c3c..e0ac3dc43b7 100644 --- a/lib/ansible/modules/network/check_point/checkpoint_host.py +++ b/lib/ansible/modules/network/check_point/checkpoint_host.py @@ -95,7 +95,6 @@ checkpoint_hosts: from ansible.module_utils.basic import AnsibleModule from ansible.module_utils.connection import Connection from ansible.module_utils.network.checkpoint.checkpoint import checkpoint_argument_spec, publish, install_policy -import json def get_host(module, connection): @@ -159,7 +158,6 @@ def main(): ) argument_spec.update(checkpoint_argument_spec) - required_if = [('state', 'present', 'ip_address')] module = AnsibleModule(argument_spec=argument_spec) connection = Connection(module._socket_path) code, response = get_host(module, connection) diff --git a/lib/ansible/modules/network/check_point/checkpoint_host_facts.py b/lib/ansible/modules/network/check_point/checkpoint_host_facts.py index 7fd9a7b7246..64764486cb8 100644 --- a/lib/ansible/modules/network/check_point/checkpoint_host_facts.py +++ b/lib/ansible/modules/network/check_point/checkpoint_host_facts.py @@ -62,8 +62,6 @@ ansible_hosts: from ansible.module_utils.basic import AnsibleModule from ansible.module_utils.connection import Connection -from ansible.module_utils.six.moves.urllib.error import HTTPError -import json def get_host(module, connection): diff --git a/lib/ansible/modules/network/check_point/checkpoint_object_facts.py b/lib/ansible/modules/network/check_point/checkpoint_object_facts.py index 096f56f91ef..e343cc9b486 100644 --- a/lib/ansible/modules/network/check_point/checkpoint_object_facts.py +++ b/lib/ansible/modules/network/check_point/checkpoint_object_facts.py @@ -73,8 +73,6 @@ ansible_hosts: from ansible.module_utils.basic import AnsibleModule from ansible.module_utils.connection import Connection -from ansible.module_utils.six.moves.urllib.error import HTTPError -import json def get_object(module, connection): diff --git a/lib/ansible/modules/network/check_point/checkpoint_run_script.py b/lib/ansible/modules/network/check_point/checkpoint_run_script.py index 0a714ff94b9..b01e6c1f605 100644 --- a/lib/ansible/modules/network/check_point/checkpoint_run_script.py +++ b/lib/ansible/modules/network/check_point/checkpoint_run_script.py @@ -71,8 +71,6 @@ checkpoint_run_script: from ansible.module_utils.basic import AnsibleModule from ansible.module_utils.connection import Connection -from ansible.module_utils.network.checkpoint.checkpoint import publish, install_policy -import json def run_script(module, connection): diff --git a/lib/ansible/modules/network/check_point/checkpoint_session.py b/lib/ansible/modules/network/check_point/checkpoint_session.py index 1c039caca7a..aabc9831350 100644 --- a/lib/ansible/modules/network/check_point/checkpoint_session.py +++ b/lib/ansible/modules/network/check_point/checkpoint_session.py @@ -70,8 +70,6 @@ checkpoint_session: from ansible.module_utils.basic import AnsibleModule from ansible.module_utils.connection import Connection -from ansible.module_utils.network.checkpoint.checkpoint import publish, discard -import json def get_session(module, connection): diff --git a/lib/ansible/modules/network/check_point/checkpoint_task_facts.py b/lib/ansible/modules/network/check_point/checkpoint_task_facts.py index 01d10b9cf63..35d13208c3c 100644 --- a/lib/ansible/modules/network/check_point/checkpoint_task_facts.py +++ b/lib/ansible/modules/network/check_point/checkpoint_task_facts.py @@ -58,8 +58,6 @@ ansible_facts: from ansible.module_utils.basic import AnsibleModule from ansible.module_utils.connection import Connection -from ansible.module_utils.six.moves.urllib.error import HTTPError -import json def get_task(module, connection): diff --git a/lib/ansible/modules/network/check_point/cp_mgmt_access_rule.py b/lib/ansible/modules/network/check_point/cp_mgmt_access_rule.py index cb07886ad9a..f904f70c8bf 100644 --- a/lib/ansible/modules/network/check_point/cp_mgmt_access_rule.py +++ b/lib/ansible/modules/network/check_point/cp_mgmt_access_rule.py @@ -277,7 +277,6 @@ cp_mgmt_access_rule: """ from ansible.module_utils.basic import AnsibleModule -from ansible.module_utils.connection import Connection from ansible.module_utils.network.checkpoint.checkpoint import checkpoint_argument_spec_for_objects, api_call, api_call_for_rule