mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-25 06:10:22 -07:00
Fix module validation errors for avi_api_session (#21154)
This commit is contained in:
parent
4e5c9c3d0d
commit
c3fb4c837b
1 changed files with 15 additions and 14 deletions
|
@ -23,19 +23,6 @@
|
||||||
#
|
#
|
||||||
"""
|
"""
|
||||||
|
|
||||||
import json
|
|
||||||
import time
|
|
||||||
from ansible.module_utils.basic import AnsibleModule
|
|
||||||
from ansible.module_utils.avi import avi_common_argument_spec, ansible_return
|
|
||||||
from copy import deepcopy
|
|
||||||
|
|
||||||
HAS_AVI = True
|
|
||||||
try:
|
|
||||||
from avi.sdk.avi_api import ApiSession
|
|
||||||
from avi.sdk.utils.ansible_utils import avi_obj_cmp, cleanup_absent_fields
|
|
||||||
except ImportError:
|
|
||||||
HAS_AVI = False
|
|
||||||
|
|
||||||
ANSIBLE_METADATA = {'status': ['preview'], 'supported_by': 'community', 'version': '1.0'}
|
ANSIBLE_METADATA = {'status': ['preview'], 'supported_by': 'community', 'version': '1.0'}
|
||||||
|
|
||||||
DOCUMENTATION = '''
|
DOCUMENTATION = '''
|
||||||
|
@ -63,7 +50,7 @@ options:
|
||||||
- Query parameters passed to the HTTP API.
|
- Query parameters passed to the HTTP API.
|
||||||
path:
|
path:
|
||||||
description:
|
description:
|
||||||
- Path for Avi API resource. For example, C(path: virtualservice) will translate to C(api/virtualserivce).
|
- 'Path for Avi API resource. For example, C(path: virtualservice) will translate to C(api/virtualserivce).'
|
||||||
timeout:
|
timeout:
|
||||||
description:
|
description:
|
||||||
- Timeout (in seconds) for Avi API calls.
|
- Timeout (in seconds) for Avi API calls.
|
||||||
|
@ -126,6 +113,20 @@ obj:
|
||||||
type: dict
|
type: dict
|
||||||
'''
|
'''
|
||||||
|
|
||||||
|
import json
|
||||||
|
import time
|
||||||
|
from ansible.module_utils.basic import AnsibleModule
|
||||||
|
from ansible.module_utils.avi import avi_common_argument_spec, ansible_return
|
||||||
|
from copy import deepcopy
|
||||||
|
|
||||||
|
HAS_AVI = True
|
||||||
|
try:
|
||||||
|
from avi.sdk.avi_api import ApiSession
|
||||||
|
from avi.sdk.utils.ansible_utils import avi_obj_cmp, cleanup_absent_fields
|
||||||
|
except ImportError:
|
||||||
|
HAS_AVI = False
|
||||||
|
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
argument_specs = dict(
|
argument_specs = dict(
|
||||||
http_method=dict(required=True,
|
http_method=dict(required=True,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue