summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Rupp <caphrim007@gmail.com>2017-09-11 15:30:34 -0700
committerToshio Kuratomi <a.badger@gmail.com>2017-09-11 15:36:51 -0700
commit670b09224ffdd76859314aa0a004f1986928aeb2 (patch)
treed86da9b8db353a977f545755ad13a33b3cccc32c
parente842ac4e3f38eeb4b01397425feba683dde029f9 (diff)
downloadansible-670b09224ffdd76859314aa0a004f1986928aeb2.tar.gz
Adds missing docs and downstream fixes (#29664)
Partition docs are not a documentation fragment, so they need to be added (cherry picked from commit a36ebd979d9b8438e96ec9929f70dcb15a388ca9)
-rw-r--r--lib/ansible/modules/network/f5/bigip_iapp_template.py36
1 files changed, 19 insertions, 17 deletions
diff --git a/lib/ansible/modules/network/f5/bigip_iapp_template.py b/lib/ansible/modules/network/f5/bigip_iapp_template.py
index e477fd057b..2c46708488 100644
--- a/lib/ansible/modules/network/f5/bigip_iapp_template.py
+++ b/lib/ansible/modules/network/f5/bigip_iapp_template.py
@@ -18,9 +18,11 @@
# You should have received a copy of the GNU General Public License
# along with Ansible. If not, see <http://www.gnu.org/licenses/>.
-ANSIBLE_METADATA = {'metadata_version': '1.1',
- 'status': ['preview'],
- 'supported_by': 'community'}
+ANSIBLE_METADATA = {
+ 'status': ['preview'],
+ 'supported_by': 'community',
+ 'metadata_version': '1.1'
+}
DOCUMENTATION = '''
---
@@ -71,6 +73,11 @@ options:
choices:
- present
- absent
+ partition:
+ description:
+ - Device partition to manage resources on.
+ required: False
+ default: 'Common'
notes:
- Requires the f5-sdk Python package on the host. This is as easy as pip
install f5-sdk.
@@ -116,15 +123,6 @@ RETURN = '''
import re
import uuid
-try:
- from StringIO import StringIO
-except ImportError:
- from io import StringIO
-
-from f5.utils.iapp_parser import (
- NonextantTemplateNameException
-)
-
from ansible.module_utils.f5_utils import (
AnsibleF5Client,
AnsibleF5Parameters,
@@ -134,6 +132,14 @@ from ansible.module_utils.f5_utils import (
defaultdict,
iControlUnexpectedHTTPError
)
+from f5.utils.iapp_parser import (
+ NonextantTemplateNameException
+)
+
+try:
+ from StringIO import StringIO
+except ImportError:
+ from io import StringIO
class Parameters(AnsibleF5Parameters):
@@ -456,9 +462,6 @@ class ArgumentSpec(object):
content=dict()
)
self.f5_product_name = 'bigip'
- self.mutually_exclusive = [
- ['sync_device_to_group', 'sync_group_to_device']
- ]
def main():
@@ -470,8 +473,7 @@ def main():
client = AnsibleF5Client(
argument_spec=spec.argument_spec,
supports_check_mode=spec.supports_check_mode,
- f5_product_name=spec.f5_product_name,
- mutually_exclusive=spec.mutually_exclusive
+ f5_product_name=spec.f5_product_name
)
try: