[Module Sync] Always update states at end of batch 19/139319/1
authordanielhanrahan <daniel.hanrahan@est.tech>
Fri, 1 Nov 2024 17:35:21 +0000 (17:35 +0000)
committerdanielhanrahan <daniel.hanrahan@est.tech>
Mon, 4 Nov 2024 13:26:23 +0000 (13:26 +0000)
commit4b93bb71bed24b4b6c06bdd1d1ceb13f8580eb10
tree195ecb5de661f3e38eb7b258085a9d33ff0f450a
parent45e00010bef158d55aacb99756f09869777908bb
[Module Sync] Always update states at end of batch

This commit moves the state update code into the 'finally'
block, so that state updates are always sent for the handles
that finished syncing, even if an exception occurred.
This commit also fixes a typo in cmHandleStatePerCmHandle.

Issue-ID: CPS-2474
Signed-off-by: danielhanrahan <daniel.hanrahan@est.tech>
Change-Id: Ic25608a5772c0873fe0d0f8aca8d70bcda51d94a
cps-ncmp-service/src/main/java/org/onap/cps/ncmp/impl/inventory/sync/ModuleSyncTasks.java