9164b96774
* ansible-doc man formatter: do not crash when description isn't there. * Change to report a better error message when description is not there. * Add test.
40 lines
570 B
Python
40 lines
570 B
Python
#!/usr/bin/python
|
|
from __future__ import absolute_import, division, print_function
|
|
__metaclass__ = type
|
|
|
|
|
|
DOCUMENTATION = '''
|
|
---
|
|
module: test_docs_returns
|
|
short_description: Test module
|
|
description:
|
|
- Test module
|
|
author:
|
|
- Ansible Core Team
|
|
options:
|
|
test:
|
|
type: str
|
|
'''
|
|
|
|
EXAMPLES = '''
|
|
'''
|
|
|
|
RETURN = '''
|
|
'''
|
|
|
|
|
|
from ansible.module_utils.basic import AnsibleModule
|
|
|
|
|
|
def main():
|
|
module = AnsibleModule(
|
|
argument_spec=dict(
|
|
test=dict(type='str'),
|
|
),
|
|
)
|
|
|
|
module.exit_json()
|
|
|
|
|
|
if __name__ == '__main__':
|
|
main()
|