mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Adds f5-sdk import check to all F5 modules (#21354)
Including this check in module utils so that it can be done automatically in all F5 modules. This includes the ones that do not yet use the f5-sdk because those modules too will move to the SDK in the future
This commit is contained in:
parent
f2c22109fb
commit
09edc00008
1 changed files with 10 additions and 0 deletions
|
@ -35,6 +35,16 @@ except ImportError:
|
||||||
bigsuds_found = False
|
bigsuds_found = False
|
||||||
|
|
||||||
|
|
||||||
|
try:
|
||||||
|
from f5.bigip import ManagementRoot as BigIpMgmt
|
||||||
|
from f5.bigiq import ManagementRoot as BigIqMgmt
|
||||||
|
from f5.iworkflow import ManagementRoot as iWorkflowMgmt
|
||||||
|
from icontrol.session import iControlUnexpectedHTTPError
|
||||||
|
HAS_F5SDK = True
|
||||||
|
except ImportError:
|
||||||
|
HAS_F5SDK = False
|
||||||
|
|
||||||
|
|
||||||
from ansible.module_utils.basic import env_fallback
|
from ansible.module_utils.basic import env_fallback
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue