minor fix see also

pull/72635/head
Brian Coca 4 years ago
parent ecf9fd579d
commit ff0e2a0559

@ -1176,6 +1176,7 @@ class DocCLI(CLI, RoleMixin):
def add_fields(text, fields, limit, opt_indent, return_values=False, base_indent='', man=False):
for o in sorted(fields):
# Create a copy so we don't modify the original (in case YAML anchors have been used)
opt = dict(fields[o])

@ -18,6 +18,7 @@ string_to_vars = {
'DOCUMENTATION': 'doc',
'EXAMPLES': 'plainexamples',
'RETURN': 'returndocs',
'SEEALSO': 'seealso',
'ANSIBLE_METADATA': 'metadata', # NOTE: now unused, but kept for backwards compat
}
@ -126,7 +127,6 @@ def read_docstring_from_python_file(filename, verbose=True, ignore_errors=True):
"""
data = _init_doc_dict()
try:
with open(filename, 'rb') as b_module_data:
M = ast.parse(b_module_data.read())

Loading…
Cancel
Save