Adds missing docs and downstream fixes (#29664)
Partition docs are not a documentation fragment, so they need to be added
This commit is contained in:
parent
5623e679b8
commit
a36ebd979d
1 changed files with 19 additions and 17 deletions
|
@ -18,9 +18,11 @@
|
||||||
# You should have received a copy of the GNU General Public License
|
# You should have received a copy of the GNU General Public License
|
||||||
# along with Ansible. If not, see <http://www.gnu.org/licenses/>.
|
# along with Ansible. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
ANSIBLE_METADATA = {'metadata_version': '1.1',
|
ANSIBLE_METADATA = {
|
||||||
'status': ['preview'],
|
'status': ['preview'],
|
||||||
'supported_by': 'community'}
|
'supported_by': 'community',
|
||||||
|
'metadata_version': '1.1'
|
||||||
|
}
|
||||||
|
|
||||||
DOCUMENTATION = '''
|
DOCUMENTATION = '''
|
||||||
---
|
---
|
||||||
|
@ -71,6 +73,11 @@ options:
|
||||||
choices:
|
choices:
|
||||||
- present
|
- present
|
||||||
- absent
|
- absent
|
||||||
|
partition:
|
||||||
|
description:
|
||||||
|
- Device partition to manage resources on.
|
||||||
|
required: False
|
||||||
|
default: 'Common'
|
||||||
notes:
|
notes:
|
||||||
- Requires the f5-sdk Python package on the host. This is as easy as pip
|
- Requires the f5-sdk Python package on the host. This is as easy as pip
|
||||||
install f5-sdk.
|
install f5-sdk.
|
||||||
|
@ -116,15 +123,6 @@ RETURN = '''
|
||||||
import re
|
import re
|
||||||
import uuid
|
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 (
|
from ansible.module_utils.f5_utils import (
|
||||||
AnsibleF5Client,
|
AnsibleF5Client,
|
||||||
AnsibleF5Parameters,
|
AnsibleF5Parameters,
|
||||||
|
@ -134,6 +132,14 @@ from ansible.module_utils.f5_utils import (
|
||||||
defaultdict,
|
defaultdict,
|
||||||
iControlUnexpectedHTTPError
|
iControlUnexpectedHTTPError
|
||||||
)
|
)
|
||||||
|
from f5.utils.iapp_parser import (
|
||||||
|
NonextantTemplateNameException
|
||||||
|
)
|
||||||
|
|
||||||
|
try:
|
||||||
|
from StringIO import StringIO
|
||||||
|
except ImportError:
|
||||||
|
from io import StringIO
|
||||||
|
|
||||||
|
|
||||||
class Parameters(AnsibleF5Parameters):
|
class Parameters(AnsibleF5Parameters):
|
||||||
|
@ -456,9 +462,6 @@ class ArgumentSpec(object):
|
||||||
content=dict()
|
content=dict()
|
||||||
)
|
)
|
||||||
self.f5_product_name = 'bigip'
|
self.f5_product_name = 'bigip'
|
||||||
self.mutually_exclusive = [
|
|
||||||
['sync_device_to_group', 'sync_group_to_device']
|
|
||||||
]
|
|
||||||
|
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
|
@ -470,8 +473,7 @@ def main():
|
||||||
client = AnsibleF5Client(
|
client = AnsibleF5Client(
|
||||||
argument_spec=spec.argument_spec,
|
argument_spec=spec.argument_spec,
|
||||||
supports_check_mode=spec.supports_check_mode,
|
supports_check_mode=spec.supports_check_mode,
|
||||||
f5_product_name=spec.f5_product_name,
|
f5_product_name=spec.f5_product_name
|
||||||
mutually_exclusive=spec.mutually_exclusive
|
|
||||||
)
|
)
|
||||||
|
|
||||||
try:
|
try:
|
||||||
|
|
Loading…
Reference in a new issue