aboutsummaryrefslogtreecommitdiffstats
path: root/prh-aai-client/src/main
diff options
context:
space:
mode:
authorpwielebs <piotr.wielebski@nokia.com>2018-09-14 16:43:00 +0200
committerpwielebs <piotr.wielebski@nokia.com>2018-09-14 16:44:34 +0200
commitcf8e9ac4d54b9deb7a8411fa2a3035fb706769d8 (patch)
tree71a540151a20ddefbbc4b5caf4be93137f47835f /prh-aai-client/src/main
parent3799b36b4cd0a342eafcf388eed7facbc9a17d50 (diff)
Bug fix 'sourceName' -> 'correlationId'
In case of PNF_REGISTRATION event components like SO and Dmaap are expecting to get 'correlationId' parameter rather than 'sourceName'. This change simply maps 'sourceName' to 'correlationId' Change-Id: Ic99ffc6cd61a76f1a8c46c50da7c16660b1b7acf Issue-ID: DCAEGEN2-744 Signed-off-by: pwielebs <piotr.wielebski@nokia.com>
Diffstat (limited to 'prh-aai-client/src/main')
-rw-r--r--prh-aai-client/src/main/java/org/onap/dcaegen2/services/prh/service/producer/AaiProducerReactiveHttpClient.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/prh-aai-client/src/main/java/org/onap/dcaegen2/services/prh/service/producer/AaiProducerReactiveHttpClient.java b/prh-aai-client/src/main/java/org/onap/dcaegen2/services/prh/service/producer/AaiProducerReactiveHttpClient.java
index 9e282cde..665d65a3 100644
--- a/prh-aai-client/src/main/java/org/onap/dcaegen2/services/prh/service/producer/AaiProducerReactiveHttpClient.java
+++ b/prh-aai-client/src/main/java/org/onap/dcaegen2/services/prh/service/producer/AaiProducerReactiveHttpClient.java
@@ -79,7 +79,7 @@ public class AaiProducerReactiveHttpClient {
private Mono<ClientResponse> patchAaiRequest(ConsumerDmaapModel dmaapModel) {
return
webClient.patch()
- .uri(getUri(dmaapModel.getSourceName()))
+ .uri(getUri(dmaapModel.getCorrelationId()))
.header(X_ONAP_REQUEST_ID, MDC.get(REQUEST_ID))
.header(X_INVOCATION_ID, UUID.randomUUID().toString())
.body(Mono.just(createJsonBody(dmaapModel)), String.class)