|
|
@ -1,21 +1,7 @@
|
|
|
|
# -*- coding: utf-8 -*-
|
|
|
|
# -*- coding: utf-8 -*-
|
|
|
|
#
|
|
|
|
#
|
|
|
|
# Copyright 2017 F5 Networks Inc.
|
|
|
|
# Copyright (c) 2017 F5 Networks Inc.
|
|
|
|
#
|
|
|
|
# GNU General Public License v3.0 (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
|
|
|
|
# This file is part of Ansible
|
|
|
|
|
|
|
|
#
|
|
|
|
|
|
|
|
# Ansible is free software: you can redistribute it and/or modify
|
|
|
|
|
|
|
|
# it under the terms of the GNU General Public License as published by
|
|
|
|
|
|
|
|
# the Free Software Foundation, either version 3 of the License, or
|
|
|
|
|
|
|
|
# (at your option) any later version.
|
|
|
|
|
|
|
|
#
|
|
|
|
|
|
|
|
# Ansible is distributed in the hope that it will be useful,
|
|
|
|
|
|
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
|
|
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
|
|
|
|
# GNU General Public License for more details.
|
|
|
|
|
|
|
|
#
|
|
|
|
|
|
|
|
# You should have received a copy of the GNU General Public License
|
|
|
|
|
|
|
|
# along with Ansible. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
from __future__ import (absolute_import, division, print_function)
|
|
|
|
from __future__ import (absolute_import, division, print_function)
|
|
|
|
__metaclass__ = type
|
|
|
|
__metaclass__ = type
|
|
|
@ -38,11 +24,13 @@ try:
|
|
|
|
from library.bigip_hostname import Parameters
|
|
|
|
from library.bigip_hostname import Parameters
|
|
|
|
from library.bigip_hostname import ModuleManager
|
|
|
|
from library.bigip_hostname import ModuleManager
|
|
|
|
from library.bigip_hostname import ArgumentSpec
|
|
|
|
from library.bigip_hostname import ArgumentSpec
|
|
|
|
|
|
|
|
from ansible.module_utils.f5_utils import iControlUnexpectedHTTPError
|
|
|
|
except ImportError:
|
|
|
|
except ImportError:
|
|
|
|
try:
|
|
|
|
try:
|
|
|
|
from ansible.modules.network.f5.bigip_hostname import Parameters
|
|
|
|
from ansible.modules.network.f5.bigip_hostname import Parameters
|
|
|
|
from ansible.modules.network.f5.bigip_hostname import ModuleManager
|
|
|
|
from ansible.modules.network.f5.bigip_hostname import ModuleManager
|
|
|
|
from ansible.modules.network.f5.bigip_hostname import ArgumentSpec
|
|
|
|
from ansible.modules.network.f5.bigip_hostname import ArgumentSpec
|
|
|
|
|
|
|
|
from ansible.module_utils.f5_utils import iControlUnexpectedHTTPError
|
|
|
|
except ImportError:
|
|
|
|
except ImportError:
|
|
|
|
raise SkipTest("F5 Ansible modules require the f5-sdk Python library")
|
|
|
|
raise SkipTest("F5 Ansible modules require the f5-sdk Python library")
|
|
|
|
|
|
|
|
|
|
|
|