mirror of https://github.com/ansible/ansible.git
ansible-doc: allow to filter by more than one collection (#81450)
Make collection filters more flexible for listing collections. Co-authored-by: Maxwell G <maxwell@gtmx.me>pull/81677/head
parent
8034651cd2
commit
b1b029c6b5
@ -0,0 +1,4 @@
|
|||||||
|
bugfixes:
|
||||||
|
- "ansible-console - fix filtering by collection names when a collection search path was set (https://github.com/ansible/ansible/pull/81450)."
|
||||||
|
minor_changes:
|
||||||
|
- "ansible-doc - allow to filter listing of collections and metadata dump by more than one collection (https://github.com/ansible/ansible/pull/81450)."
|
@ -0,0 +1,6 @@
|
|||||||
|
namespace: testns
|
||||||
|
name: testcol3
|
||||||
|
version: 0.1.0
|
||||||
|
readme: README.md
|
||||||
|
authors:
|
||||||
|
- me
|
@ -0,0 +1,27 @@
|
|||||||
|
#!/usr/bin/python
|
||||||
|
from __future__ import (absolute_import, division, print_function)
|
||||||
|
__metaclass__ = type
|
||||||
|
|
||||||
|
|
||||||
|
DOCUMENTATION = """
|
||||||
|
module: test1
|
||||||
|
short_description: Foo module in testcol3
|
||||||
|
description:
|
||||||
|
- This is a foo module.
|
||||||
|
author:
|
||||||
|
- me
|
||||||
|
"""
|
||||||
|
|
||||||
|
from ansible.module_utils.basic import AnsibleModule
|
||||||
|
|
||||||
|
|
||||||
|
def main():
|
||||||
|
module = AnsibleModule(
|
||||||
|
argument_spec=dict(),
|
||||||
|
)
|
||||||
|
|
||||||
|
module.exit_json()
|
||||||
|
|
||||||
|
|
||||||
|
if __name__ == '__main__':
|
||||||
|
main()
|
@ -0,0 +1,6 @@
|
|||||||
|
namespace: testns
|
||||||
|
name: testcol4
|
||||||
|
version: 1.0.0
|
||||||
|
readme: README.md
|
||||||
|
authors:
|
||||||
|
- me
|
@ -0,0 +1,27 @@
|
|||||||
|
#!/usr/bin/python
|
||||||
|
from __future__ import (absolute_import, division, print_function)
|
||||||
|
__metaclass__ = type
|
||||||
|
|
||||||
|
|
||||||
|
DOCUMENTATION = """
|
||||||
|
module: test2
|
||||||
|
short_description: Foo module in testcol4
|
||||||
|
description:
|
||||||
|
- This is a foo module.
|
||||||
|
author:
|
||||||
|
- me
|
||||||
|
"""
|
||||||
|
|
||||||
|
from ansible.module_utils.basic import AnsibleModule
|
||||||
|
|
||||||
|
|
||||||
|
def main():
|
||||||
|
module = AnsibleModule(
|
||||||
|
argument_spec=dict(),
|
||||||
|
)
|
||||||
|
|
||||||
|
module.exit_json()
|
||||||
|
|
||||||
|
|
||||||
|
if __name__ == '__main__':
|
||||||
|
main()
|
Loading…
Reference in New Issue