From 2c9c5e8fa43d2b36a24c3d3c9cac0177b5795efe Mon Sep 17 00:00:00 2001 From: Kartheeswaran Kalidass Date: Tue, 30 Nov 2021 15:53:47 +0100 Subject: [PATCH] Add review comments Signed-off-by: Kartheeswaran Kalidass --- .../credentials/AbstractCredentialsManagementService.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/device-registry-base/src/main/java/org/eclipse/hono/deviceregistry/service/credentials/AbstractCredentialsManagementService.java b/services/device-registry-base/src/main/java/org/eclipse/hono/deviceregistry/service/credentials/AbstractCredentialsManagementService.java index eab222707b..47ebbb4467 100644 --- a/services/device-registry-base/src/main/java/org/eclipse/hono/deviceregistry/service/credentials/AbstractCredentialsManagementService.java +++ b/services/device-registry-base/src/main/java/org/eclipse/hono/deviceregistry/service/credentials/AbstractCredentialsManagementService.java @@ -183,7 +183,7 @@ public final Future> updateCredentials( final Future tenantFuture = tenantInformationService.getTenant(tenantId, span); return tenantFuture .compose(tenant -> tenant.checkCredentialsLimitExceeded(tenantId, credentials)) - .compose(tenant -> applyAuthIdTemplateForX509CertificateCredentials(tenantFuture.result(), credentials)) + .compose(ok -> applyAuthIdTemplateForX509CertificateCredentials(tenantFuture.result(), credentials)) .compose(this::verifyAndEncodePasswords) .compose(encodedCredentials -> processUpdateCredentials( DeviceKey.from(tenantId, deviceId),