mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-08 14:22:46 +00:00
Fix a10 pylint issues (#23410)
* Fix a10 pylint issues * Moving imports to standard location
This commit is contained in:
@@ -100,6 +100,12 @@ EXAMPLES = '''
|
||||
protocol: TCP
|
||||
|
||||
'''
|
||||
import json
|
||||
|
||||
from ansible.module_utils.basic import AnsibleModule
|
||||
from ansible.module_utils.urls import url_argument_spec
|
||||
from ansible.module_utils.a10 import axapi_call_v3, a10_argument_spec, axapi_authenticate_v3, axapi_failure
|
||||
from ansible.module_utils.a10 import AXAPI_PORT_PROTOCOLS
|
||||
|
||||
VALID_PORT_FIELDS = ['port-number', 'protocol', 'action']
|
||||
|
||||
@@ -245,12 +251,5 @@ def main():
|
||||
axapi_call_v3(module, axapi_base_url + 'logoff/', method='POST', body='', signature=signature)
|
||||
module.exit_json(changed=changed, content=result)
|
||||
|
||||
|
||||
import json
|
||||
from ansible.module_utils.basic import AnsibleModule
|
||||
from ansible.module_utils.urls import url_argument_spec
|
||||
from ansible.module_utils.a10 import axapi_call_v3, a10_argument_spec, axapi_authenticate_v3, axapi_failure
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
main()
|
||||
|
||||
Reference in New Issue
Block a user