Skip root GPN workaround

This commit is contained in:
Zaid Abdulla committed 2022-08-01 11:32:05 -07:00
1 parent ffbcf2bbc0
commit eb5caa6b5a
1 file changed
+14
+14
View File
@@ -1624,6 +1624,20 @@ function generateGetRpcRequest(
(a, b) => b.length - a.length (a, b) => b.length - a.length
); );
let path = paths.pop(); let path = paths.pop();
// Skip root GPN workaround
if (path && !path.length) {
const SKIP_ROOT_GPN = !!localCache.getConfig(
sessionContext.cacheSnapshot,
"cwmp.skipRootGpn",
{},
sessionContext.timestamp,
(e) => configContextCallback(sessionContext, e)
);
if (SKIP_ROOT_GPN) path = paths.pop();
}
while ( while (
path && path &&
path.length && path.length &&