mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-24 11:21:25 -07:00
(A) Fix a bug in the doc generator that was clobbering the force parameter for the copy module.
(B) This is a work in progress but the idea is to have text snippets where we can respond to tickets with a bit more helpful info. Not active just yet.
This commit is contained in:
parent
2e1aa23570
commit
4312391e0a
10 changed files with 197 additions and 1 deletions
|
@ -85,7 +85,9 @@ def get_docstring(filename, verbose=False):
|
|||
if not doc.has_key(key):
|
||||
doc[key] = value
|
||||
else:
|
||||
doc[key].update(value)
|
||||
# not sure this is the only example but don't do this for the copy module
|
||||
if key != 'force':
|
||||
doc[key].update(value)
|
||||
|
||||
if 'EXAMPLES' in (t.id for t in child.targets):
|
||||
plainexamples = child.value.s[1:] # Skip first empty line
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue