Fix flake8 errors for checkpoint modules (#67827)
We caught these in our checkpoint.checkpoint collection testing. Signed-off-by: Paul Belanger <pabelanger@redhat.com>
This commit is contained in:
parent
f735fd672a
commit
2a920cf228
9 changed files with 0 additions and 17 deletions
|
@ -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):
|
||||
|
|
|
@ -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):
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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):
|
||||
|
|
|
@ -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):
|
||||
|
|
|
@ -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):
|
||||
|
|
|
@ -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):
|
||||
|
|
|
@ -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):
|
||||
|
|
|
@ -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
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue