Avi: Fixed import issues (#52661)
This commit is contained in:
parent
77565554c8
commit
662dd2c1de
4 changed files with 8 additions and 8 deletions
|
@ -115,8 +115,8 @@ from copy import deepcopy
|
|||
|
||||
try:
|
||||
from ansible.module_utils.network.avi.avi import (
|
||||
avi_common_argument_spec, ansible_return, AviCredentials, HAS_AVI)
|
||||
from avi.sdk.avi_api import ApiSession
|
||||
avi_common_argument_spec, ansible_return, HAS_AVI)
|
||||
from avi.sdk.avi_api import ApiSession, AviCredentials
|
||||
from avi.sdk.utils.ansible_utils import avi_obj_cmp, cleanup_absent_fields
|
||||
|
||||
except ImportError:
|
||||
|
|
|
@ -55,8 +55,8 @@ from ansible.module_utils.basic import AnsibleModule
|
|||
|
||||
try:
|
||||
from ansible.module_utils.network.avi.avi import (
|
||||
avi_common_argument_spec, HAS_AVI, AviCredentials)
|
||||
from avi.sdk.avi_api import ApiSession
|
||||
avi_common_argument_spec, HAS_AVI)
|
||||
from avi.sdk.avi_api import ApiSession, AviCredentials
|
||||
except ImportError:
|
||||
HAS_AVI = False
|
||||
|
||||
|
|
|
@ -114,10 +114,10 @@ HAS_AVI = True
|
|||
try:
|
||||
from ansible.module_utils.network.avi.avi import (
|
||||
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 (
|
||||
avi_obj_cmp, cleanup_absent_fields, ansible_return,
|
||||
AviCheckModeResponse, AviCredentials)
|
||||
AviCheckModeResponse)
|
||||
except ImportError:
|
||||
HAS_AVI = False
|
||||
|
||||
|
|
|
@ -78,8 +78,8 @@ from copy import deepcopy
|
|||
|
||||
try:
|
||||
from ansible.module_utils.network.avi.avi import (
|
||||
avi_common_argument_spec, ansible_return, AviCredentials, HAS_AVI)
|
||||
from avi.sdk.avi_api import ApiSession
|
||||
avi_common_argument_spec, ansible_return, HAS_AVI)
|
||||
from avi.sdk.avi_api import ApiSession, AviCredentials
|
||||
from avi.sdk.utils.ansible_utils import avi_obj_cmp, cleanup_absent_fields
|
||||
|
||||
except ImportError:
|
||||
|
|
Loading…
Reference in a new issue