summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorToine Siebelink <toine.siebelink@est.tech>2023-11-08 17:37:22 +0000
committerGerrit Code Review <gerrit@onap.org>2023-11-08 17:37:22 +0000
commitc7da68167b61674566e165955cbd9f518b32d02e (patch)
treef23fd38d62317f065d8c3afb9ebc1722c2b54e41
parentb1e4eeada32431e438094df80a3f848347d2160f (diff)
parent349826a5401d58c5c598f9819ee04283e409d5ca (diff)
Merge "CPS-NCMP: No yang resources stored during cmhandle discovery however cmhandles are in READY state"
-rw-r--r--cps-ncmp-service/src/main/java/org/onap/cps/ncmp/api/impl/inventory/sync/ModuleSyncService.java4
1 files changed, 3 insertions, 1 deletions
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);
+ }
}
/**