Skip to content

Commit cc5614a

Browse files
Rohan Suryawanshisagarpsalvichandanapatnala
authored
Auto updated assets for ansible collection 22.1.7 (#203)
* Updated assets for ansible collection Signed-off-by: Rohan <[email protected]> * Fixing ansible sanity test failures and missing commits in 22.1.7 * Fixing ansible sanity test failures * Fixing ansible sanity test failures --------- Signed-off-by: Rohan <[email protected]> Co-authored-by: Rohan <[email protected]> Co-authored-by: cpatnala <[email protected]>
1 parent b2e283d commit cc5614a

23 files changed

+551
-193
lines changed

.github/workflows/ci.yaml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,15 +17,15 @@ jobs:
1717
HOME: "/home/runner"
1818
strategy:
1919
matrix:
20-
ansible: [2.9.17, 2.10.5]
20+
ansible: [2.15.0]
2121
steps:
2222
- name: Check out code
2323
uses: actions/checkout@v2
2424

25-
- name: Set up Python 3.8
25+
- name: Set up Python 3.9.19
2626
uses: actions/setup-python@v1
2727
with:
28-
python-version: 3.8
28+
python-version: 3.9.19
2929

3030
- name: Get Python and Pip version
3131
run: echo $(pip --version)
@@ -40,11 +40,11 @@ jobs:
4040
run: ansible-galaxy collection install *.tar.gz
4141

4242
- name: Run unit tests
43-
run: ansible-test units --docker -v --color --truncate 0 --python 3.8
43+
run: ansible-test units --docker -v --color --truncate 0 --python 3.9
4444
working-directory: ${{ env.HOME }}/.ansible/collections/ansible_collections/vmware/alb
4545

4646
- name: Run ansible sanity tests
47-
run: ansible-test sanity --docker -v --color --truncate 0 --python 3.8
47+
run: ansible-test sanity --docker -v --color --truncate 0 --python 3.9
4848
working-directory: ${{ env.HOME }}/.ansible/collections/ansible_collections/vmware/alb
4949

5050
# Always install galaxy-importer after the unit tests are finished as it is overriding the existing
@@ -62,4 +62,4 @@ jobs:
6262
# run: python -m galaxy_importer.main ${GITHUB_WORKSPACE}/vmware-*.tar.gz | tee ${GITHUB_WORKSPACE}/log.txt
6363

6464
# - name: Check errors
65-
# run: if grep -E 'ERROR' ${GITHUB_WORKSPACE}/log.txt; then exit 1; else exit 0; fi
65+
# run: if grep -E 'ERROR' ${GITHUB_WORKSPACE}/log.txt; then exit 1; else exit 0; fi

README.md

Lines changed: 123 additions & 123 deletions
Large diffs are not rendered by default.

docs/avi_serviceenginegroup.rst

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5859,5 +5859,4 @@ Authors
58595859
~~~~~~~
58605860
- Gaurav Rastogi ([email protected])
58615861
- Sandeep Bandi ([email protected])
5862-
- Amol Shinde ([email protected])
5863-
5862+
- Amol Shinde ([email protected])

docs/avi_serviceenginegroup_advanced.rst

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2518,5 +2518,4 @@ Authors
25182518
~~~~~~~
25192519
- Gaurav Rastogi ([email protected])
25202520
- Sandeep Bandi ([email protected])
2521-
- Amol Shinde ([email protected])
2522-
2521+
- Amol Shinde ([email protected])

galaxy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,4 @@ tags:
1818
- load
1919
- balancer
2020
- sdk
21-
version: 22.1.6
21+
version: 22.1.7

plugins/doc_fragments/avi.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,5 +118,6 @@ class ModuleDocFragment(object):
118118
default: false
119119
120120
notes:
121-
- For more information on using Ansible to manage Avi Network devices see U(https://www.ansible.com/ansible-avi-networks).
121+
- For more information on using Ansible to manage Avi Network
122+
devices see U(https://www.ansible.com/ansible-avi-networks).
122123
'''

plugins/module_utils/csp_avi_api.py

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -5,25 +5,12 @@
55

66
__metaclass__ = type
77

8-
from ansible_collections.vmware.alb.plugins.module_utils.avi_api import ApiSession, \
9-
sessionDict, APIError, AviCredentials
10-
import os
11-
import sys
12-
import copy
13-
import json
8+
from ansible_collections.vmware.alb.plugins.module_utils.avi_api import ApiSession, APIError
149
import logging
1510
import time
1611

17-
if sys.version_info < (3, 5):
18-
from urlparse import urlparse
19-
else:
20-
from urllib.parse import urlparse
21-
22-
from datetime import datetime, timedelta
2312
from requests import ConnectionError
24-
from requests import Response
2513
from requests.exceptions import ChunkedEncodingError
26-
from requests.sessions import Session
2714
from ssl import SSLError
2815

2916
logger = logging.getLogger(__name__)

plugins/modules/avi_api_fileservice.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -101,9 +101,7 @@
101101
HAS_LIB = False
102102

103103
try:
104-
from ansible_collections.vmware.alb.plugins.module_utils.utils.ansible_utils import (
105-
avi_common_argument_spec, ansible_return, avi_obj_cmp,
106-
cleanup_absent_fields)
104+
from ansible_collections.vmware.alb.plugins.module_utils.utils.ansible_utils import avi_common_argument_spec
107105
from ansible_collections.vmware.alb.plugins.module_utils.avi_api import (
108106
ApiSession, AviCredentials)
109107
HAS_REQUESTS = True

plugins/modules/avi_api_image.py

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,6 @@
5959
type: dict
6060
'''
6161

62-
import json
6362
import os
6463
from ansible.module_utils.basic import AnsibleModule
6564

@@ -70,19 +69,15 @@
7069
HAS_LIB = False
7170

7271
try:
73-
from ansible_collections.vmware.alb.plugins.module_utils.utils.ansible_utils import (
74-
avi_common_argument_spec, ansible_return, avi_obj_cmp,
75-
cleanup_absent_fields)
72+
from ansible_collections.vmware.alb.plugins.module_utils.utils.ansible_utils import avi_common_argument_spec
7673
from ansible_collections.vmware.alb.plugins.module_utils.avi_api import (
7774
ApiSession, AviCredentials)
7875
HAS_REQUESTS = True
7976
except ImportError:
8077
HAS_REQUESTS = False
8178
try:
8279
from avi.sdk.avi_api import ApiSession, AviCredentials
83-
from avi.sdk.utils.ansible_utils import (
84-
avi_obj_cmp, cleanup_absent_fields, avi_common_argument_spec,
85-
ansible_return)
80+
from avi.sdk.utils.ansible_utils import avi_common_argument_spec
8681
HAS_AVI = True
8782
except ImportError:
8883
HAS_AVI = False

plugins/modules/avi_api_version.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,7 @@
4848
from ansible.module_utils.basic import AnsibleModule
4949

5050
try:
51-
from ansible_collections.vmware.alb.plugins.module_utils.utils.ansible_utils import (
52-
avi_common_argument_spec, ansible_return, avi_obj_cmp,
53-
cleanup_absent_fields)
51+
from ansible_collections.vmware.alb.plugins.module_utils.utils.ansible_utils import avi_common_argument_spec
5452
from ansible_collections.vmware.alb.plugins.module_utils.avi_api import (
5553
ApiSession, AviCredentials)
5654
HAS_REQUESTS = True

0 commit comments

Comments
 (0)