diff options
author | Matthew Jordan <mjordan@digium.com> | 2014-08-07 03:04:49 +0000 |
---|---|---|
committer | Matthew Jordan <mjordan@digium.com> | 2014-08-07 03:04:49 +0000 |
commit | 36878ed1d1675eceab1c27f3ec74af052c8be4fb (patch) | |
tree | 08e1d50969ed8ed4ef4ab20689d38e434661fd72 /build_tools/post_process_documentation.py | |
parent | a6fae3055c31a377cd2ffa11ccda6d28fc85e441 (diff) |
build_tools: Skip managerEvent combining for AMI action responses
AMI action responses can (and will) reference AMI events that they return.
These event references and definitions should not be combined with AMI events
raised elsewhere in the code, as they are specifically tied to the AMI action
that raised them.
ASTERISK-24156 #close
Reported by: Rusty Newton
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@420289 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'build_tools/post_process_documentation.py')
-rw-r--r-- | build_tools/post_process_documentation.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/build_tools/post_process_documentation.py b/build_tools/post_process_documentation.py index 678328dd3..5fa1c5b58 100644 --- a/build_tools/post_process_documentation.py +++ b/build_tools/post_process_documentation.py @@ -59,7 +59,10 @@ def collapse_event_pair(managerEventOne, managerEventTwo): def collapse_manager_events(rootNode, managerEvents): events = {} for managerEvent in managerEvents: - rootNode.removeChild(managerEvent) + if (managerEvent.parentNode.nodeName == 'list-elements' + or managerEvent.parentNode.nodeName == 'responses'): + continue + managerEvent.parentNode.removeChild(managerEvent) attr = managerEvent.getAttribute('name') if attr in events: # match, collapse the two managerEvents |