mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-25 03:41:25 -07:00
parent
ff923fb6b0
commit
54e8e122bf
1 changed files with 2 additions and 1 deletions
|
@ -56,12 +56,13 @@ def merge_fragment(target, source):
|
||||||
value = sorted(frozenset(value + target[key]))
|
value = sorted(frozenset(value + target[key]))
|
||||||
else:
|
else:
|
||||||
raise Exception("Attempt to extend a documentation fragement, invalid type for %s" % key)
|
raise Exception("Attempt to extend a documentation fragement, invalid type for %s" % key)
|
||||||
|
else:
|
||||||
target[key] = value
|
target[key] = value
|
||||||
|
|
||||||
|
|
||||||
def add_fragments(doc, filename):
|
def add_fragments(doc, filename):
|
||||||
|
|
||||||
fragments = doc.get('extends_documentation_fragment', [])
|
fragments = doc.pop('extends_documentation_fragment', [])
|
||||||
|
|
||||||
if isinstance(fragments, string_types):
|
if isinstance(fragments, string_types):
|
||||||
fragments = [fragments]
|
fragments = [fragments]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue