[VOL-4428] openonu-adapter-go - rw-core is using delete force when ONUS are in reconciling and delete OLT is issued (correction after test)
Change-Id: I9ff812e547ca19c1049a950ad56779cf9db6e785
diff --git a/internal/pkg/core/openonu.go b/internal/pkg/core/openonu.go
index 7c5918a..621bd7f 100755
--- a/internal/pkg/core/openonu.go
+++ b/internal/pkg/core/openonu.go
@@ -368,7 +368,7 @@
logger.Errorw(ctx, "Can't access onuKVStore - no backend connection to service", log.Fields{"service": baseKvStorePath, "device-id": device.Id})
return nil, fmt.Errorf("can-not-access-onuKVStore-no-backend-connection-to-service")
}
- err := kvbackend.Delete(ctx, device.Id)
+ err := kvbackend.DeleteWithPrefix(ctx, device.Id)
if err != nil {
logger.Errorw(ctx, "unable to delete in KVstore", log.Fields{"service": baseKvStorePath, "device-id": device.Id, "err": err})
return nil, fmt.Errorf("unable-to-delete-in-KVstore")