Avi: Fixed import issues (#52661)

pull/53455/head
Chaitanya Deshpande 6 years ago committed by Nathaniel Case
parent 77565554c8
commit 662dd2c1de

@ -115,8 +115,8 @@ from copy import deepcopy
try: try:
from ansible.module_utils.network.avi.avi import ( from ansible.module_utils.network.avi.avi import (
avi_common_argument_spec, ansible_return, AviCredentials, HAS_AVI) avi_common_argument_spec, ansible_return, HAS_AVI)
from avi.sdk.avi_api import ApiSession from avi.sdk.avi_api import ApiSession, AviCredentials
from avi.sdk.utils.ansible_utils import avi_obj_cmp, cleanup_absent_fields from avi.sdk.utils.ansible_utils import avi_obj_cmp, cleanup_absent_fields
except ImportError: except ImportError:

@ -55,8 +55,8 @@ from ansible.module_utils.basic import AnsibleModule
try: try:
from ansible.module_utils.network.avi.avi import ( from ansible.module_utils.network.avi.avi import (
avi_common_argument_spec, HAS_AVI, AviCredentials) avi_common_argument_spec, HAS_AVI)
from avi.sdk.avi_api import ApiSession from avi.sdk.avi_api import ApiSession, AviCredentials
except ImportError: except ImportError:
HAS_AVI = False HAS_AVI = False

@ -114,10 +114,10 @@ HAS_AVI = True
try: try:
from ansible.module_utils.network.avi.avi import ( from ansible.module_utils.network.avi.avi import (
avi_common_argument_spec, HAS_AVI) avi_common_argument_spec, HAS_AVI)
from avi.sdk.avi_api import ApiSession from avi.sdk.avi_api import ApiSession, AviCredentials
from avi.sdk.utils.ansible_utils import ( from avi.sdk.utils.ansible_utils import (
avi_obj_cmp, cleanup_absent_fields, ansible_return, avi_obj_cmp, cleanup_absent_fields, ansible_return,
AviCheckModeResponse, AviCredentials) AviCheckModeResponse)
except ImportError: except ImportError:
HAS_AVI = False HAS_AVI = False

@ -78,8 +78,8 @@ from copy import deepcopy
try: try:
from ansible.module_utils.network.avi.avi import ( from ansible.module_utils.network.avi.avi import (
avi_common_argument_spec, ansible_return, AviCredentials, HAS_AVI) avi_common_argument_spec, ansible_return, HAS_AVI)
from avi.sdk.avi_api import ApiSession from avi.sdk.avi_api import ApiSession, AviCredentials
from avi.sdk.utils.ansible_utils import avi_obj_cmp, cleanup_absent_fields from avi.sdk.utils.ansible_utils import avi_obj_cmp, cleanup_absent_fields
except ImportError: except ImportError:

Loading…
Cancel
Save