mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
fixed again
This commit is contained in:
parent
571e93f882
commit
342a85d33f
1 changed files with 7 additions and 4 deletions
|
@ -22,8 +22,8 @@ __metaclass__ = type
|
|||
|
||||
import sys
|
||||
|
||||
from nose.plugins.skip import SkipTest
|
||||
if sys.version_info < (2, 7):
|
||||
from nose.plugins.skip import SkipTest
|
||||
raise SkipTest("F5 Ansible modules require Python >= 2.7")
|
||||
|
||||
import os
|
||||
|
@ -40,9 +40,12 @@ try:
|
|||
from library.bigip_virtual_address import ModuleManager
|
||||
from library.bigip_virtual_address import ArgumentSpec
|
||||
except ImportError:
|
||||
try:
|
||||
from ansible.modules.network.f5.bigip_virtual_address import Parameters
|
||||
from ansible.modules.network.f5.bigip_virtual_address import ModuleManager
|
||||
from ansible.modules.network.f5.bigip_virtual_address import ArgumentSpec
|
||||
except ImportError:
|
||||
raise SkipTest("This test requries F5 python libraries")
|
||||
|
||||
fixture_path = os.path.join(os.path.dirname(__file__), 'fixtures')
|
||||
fixture_data = {}
|
||||
|
|
Loading…
Reference in a new issue