mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-02 19:16:15 +00:00
Migrate AMI VarSet events raised by GoSub local variables
This patch moves VarSet events for local variables raised by GoSub over to Stasis-Core. It also tweaks up the post-processing documentation scripts to not combine parameters if both parameters are already documented. (issue ASTERISK-21462) git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@387519 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -22,9 +22,9 @@ def merge_parameter_information(managerEvent):
|
||||
|
||||
def __swap_parameter_documentation(one, two):
|
||||
# See who has the better documentation and use it
|
||||
if (one.hasChildNodes()):
|
||||
if (one.hasChildNodes() and not two.hasChildNodes()):
|
||||
two.parentNode.replaceChild(one.cloneNode(True), two)
|
||||
elif (two.hasChildNodes()):
|
||||
elif (two.hasChildNodes() and not one.hasChildNodes()):
|
||||
one.parentNode.replaceChild(two.cloneNode(True), one)
|
||||
|
||||
def __merge_parameter(param, other_instances):
|
||||
|
Reference in New Issue
Block a user