Skip to content

Commit

Permalink
added better description on how aggregate functions (ansible#61069)
Browse files Browse the repository at this point in the history
  • Loading branch information
wojtek0806 authored and adharshsrivatsr committed Sep 3, 2019
1 parent a527032 commit 893ffb0
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 2 deletions.
5 changes: 5 additions & 0 deletions lib/ansible/modules/network/f5/bigip_gtm_pool_member.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,11 @@
aggregate:
description:
- List of GTM pool member definitions to be created, modified or removed.
- When using C(aggregates) if one of the aggregate definitions is invalid, the aggregate run will fail,
indicating the error it last encountered.
- The module will C(NOT) rollback any changes it has made prior to encountering the error.
- The module also will not indicate what changes were made prior to failure, therefore it is strongly advised
to run the module in check mode to make basic validation, prior to module execution.
type: list
aliases:
- members
Expand Down
5 changes: 5 additions & 0 deletions lib/ansible/modules/network/f5/bigip_pool.py
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,11 @@
aggregate:
description:
- List of pool definitions to be created, modified or removed.
- When using C(aggregates) if one of the aggregate definitions is invalid, the aggregate run will fail,
indicating the error it last encountered.
- The module will C(NOT) rollback any changes it has made prior to encountering the error.
- The module also will not indicate what changes were made prior to failure, therefore it is strongly advised
to run the module in check mode to make basic validation, prior to module execution.
type: list
aliases:
- pools
Expand Down
12 changes: 10 additions & 2 deletions lib/ansible/modules/network/f5/bigip_pool_member.py
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,11 @@
aggregate:
description:
- List of pool member definitions to be created, modified or removed.
- When using C(aggregates) if one of the aggregate definitions is invalid, the aggregate run will fail,
indicating the error it last encountered.
- The module will C(NOT) rollback any changes it has made prior to encountering the error.
- The module also will not indicate what changes were made prior to failure, therefore it is strongly advised
to run the module in check mode to make basic validation, prior to module execution.
type: list
aliases:
- members
Expand All @@ -202,6 +207,9 @@
aliases:
- purge
version_added: 2.8
notes:
- In previous versions of this module, which used the SDK, the C(name) parameter would act as C(fqdn) if C(address) or
C(fqdn) were not provided.
extends_documentation_fragment: f5
author:
- Tim Rupp (@caphrim007)
Expand Down Expand Up @@ -548,7 +556,7 @@ def fqdn(self):
return result
if not is_valid_hostname(self._values['fqdn']):
raise F5ModuleError(
"The specified 'fqdn' is not a valid hostname."
"The specified 'fqdn' value of: {0} is not a valid hostname.".format(self._values['fqdn'])
)
result['tmName'] = self._values['fqdn']
return result
Expand Down Expand Up @@ -579,7 +587,7 @@ def address(self):
if is_valid_ip(address):
return self._values['address']
raise F5ModuleError(
"The specified 'address' value is not a valid IP address."
"The specified 'address' value of: {0} is not a valid IP address.".format(address)
)

@property
Expand Down

0 comments on commit 893ffb0

Please sign in to comment.