pull/41824/head
Brian Coca 7 years ago committed by Brian Coca
parent 27c43daab8
commit 2affb5f729

@ -537,6 +537,8 @@ class DocCLI(CLI):
if 'deprecated' in doc and doc['deprecated'] is not None and len(doc['deprecated']) > 0:
text.append("DEPRECATED: \n")
if isinstance(doc['deprecated'], dict):
if 'version' in doc['deprecated'] and 'removed_in' not in doc['deprecated']:
doc['deprecated']['removed_in'] = doc['deprecated']['version']
text.append("\tReason: %(why)s\n\tWill be removed in: Ansible %(removed_in)s\n\tAlternatives: %(alternative)s" % doc.pop('deprecated'))
else:
text.append("%s" % doc.pop('deprecated'))

@ -11,7 +11,7 @@ DOCUMENTATION = """
short_description: fetch data from Redis
deprecated:
why: This lookup uses options intermingled with terms which blurs the interface between settings and data
removed_in: '2.9'
version: '2.9'
alternative: new 'redis' lookup
description:
- this lookup returns a list of items given to it, if any of the top level items is also a list it will flatten it, but it will not recurse

Loading…
Cancel
Save