mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-04-15 21:31:02 +00:00
@@ -56,12 +56,13 @@ def merge_fragment(target, source):
|
||||
value = sorted(frozenset(value + target[key]))
|
||||
else:
|
||||
raise Exception("Attempt to extend a documentation fragement, invalid type for %s" % key)
|
||||
else:
|
||||
target[key] = value
|
||||
|
||||
|
||||
def add_fragments(doc, filename):
|
||||
|
||||
fragments = doc.get('extends_documentation_fragment', [])
|
||||
fragments = doc.pop('extends_documentation_fragment', [])
|
||||
|
||||
if isinstance(fragments, string_types):
|
||||
fragments = [fragments]
|
||||
|
||||
Reference in New Issue
Block a user