From: sourabh_sourabh Date: Wed, 8 Nov 2023 13:54:11 +0000 (+0000) Subject: CPS-NCMP: No yang resources stored during cmhandle discovery however cmhandles are... X-Git-Tag: 3.4.0~3^2 X-Git-Url: https://gerrit.onap.org/r/gitweb?a=commitdiff_plain;h=349826a5401d58c5c598f9819ee04283e409d5ca;hp=cc2d5837b72abf3c2d83889c45c646dbb4756b2b;p=cps.git CPS-NCMP: No yang resources stored during cmhandle discovery however cmhandles are in READY state - Applied blank check on modulesettag while pushing module list into cache. Issue-ID: CPS-1956 Signed-off-by: sourabh_sourabh Change-Id: Ia0d0b531a9750ef2ea011d6fc13e4d1b4c99fb64 --- diff --git a/cps-ncmp-service/src/main/java/org/onap/cps/ncmp/api/impl/inventory/sync/ModuleSyncService.java b/cps-ncmp-service/src/main/java/org/onap/cps/ncmp/api/impl/inventory/sync/ModuleSyncService.java index 2ea39e8dc..d191a5467 100644 --- a/cps-ncmp-service/src/main/java/org/onap/cps/ncmp/api/impl/inventory/sync/ModuleSyncService.java +++ b/cps-ncmp-service/src/main/java/org/onap/cps/ncmp/api/impl/inventory/sync/ModuleSyncService.java @@ -122,7 +122,9 @@ public class ModuleSyncService { } cpsModuleService.createOrUpgradeSchemaSetFromModules(NFP_OPERATIONAL_DATASTORE_DATASPACE_NAME, yangModelCmHandle.getId(), newModuleNameToContentMap, allModuleReferencesFromCmHandle); - moduleSetTagCache.put(moduleSetTag, allModuleReferencesFromCmHandle); + if (StringUtils.isNotBlank(moduleSetTag)) { + moduleSetTagCache.put(moduleSetTag, allModuleReferencesFromCmHandle); + } } /**