On Wed, 2017-03-08 at 10:26 -0900, Dan Morphis wrote:
> Notice that the ParameterNames node is empty. This fault occurs no
> matter which node I try to refresh. This is happening with the latest
> on master.

Please try the attached patch and let me know if that fixes the
problem.

FYI, you can use the option "XML_FORMAT" to have pretty formatted XML
output.

-- 
Zaid Abdulla <[email protected]>
diff --git a/lib/session.coffee b/lib/session.coffee
index 069e504..8e71f86 100644
--- a/lib/session.coffee
+++ b/lib/session.coffee
@@ -917,10 +917,11 @@ generateGetRpcRequest = (sessionContext) ->
       if sessionContext.deviceData.attributes.has(path)
         parameterNames.push(path)
 
-    return {
-      name: 'GetParameterValues'
-      parameterNames: (p.join('.') for p in parameterNames)
-    }
+    if parameterNames.length
+      return {
+        name: 'GetParameterValues'
+        parameterNames: (p.join('.') for p in parameterNames)
+      }
 
   return null
_______________________________________________
Users mailing list
[email protected]
http://lists.genieacs.com/mailman/listinfo/users

Reply via email to