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
pull/21394/head
Tim Rupp 8 years ago committed by John R Barker
parent f2c22109fb
commit 09edc00008

@ -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…
Cancel
Save