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:
Paul Belanger 2020-02-27 21:15:32 -05:00 committed by GitHub
parent f735fd672a
commit 2a920cf228
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
9 changed files with 0 additions and 17 deletions

View file

@ -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):

View file

@ -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):

View file

@ -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)

View file

@ -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):

View file

@ -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):

View file

@ -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):

View file

@ -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):

View file

@ -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):

View file

@ -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