Yangman - Rpc output list is appending elements instead of replacing 11/46211/2
authormichal.kovacik <mikovaci@cisco.com>
Tue, 27 Sep 2016 07:36:35 +0000 (09:36 +0200)
committerDaniel Malachovsky <dmalacho@cisco.com>
Mon, 7 Nov 2016 10:03:40 +0000 (11:03 +0100)
- When an RPC output contains a list, multiple invocations show multiplied
  elements in output list

Change-Id: I5e885d3850f0cb071821bdb1711372bea590e299
Signed-off-by: michal.kovacik <mikovaci@cisco.com>
modules/common-yangutils-resources/src/main/resources/yangutils/services/node-wrapper.services.js

index af091f2ce733dfb7262685131095abea3a0b4eca..ac081febf40e3f6bbfeb7e1736843210d88ecc1e 100644 (file)
@@ -410,7 +410,7 @@ define([], function () {
                     newLeafListItem;
 
                 if (match) {
-
+                    node.value = [];
                     for (var i = 0; i < array.length; i++) {
                         newLeafListItem = {
                             value: array[i],