From d4d6800a911084c0751a94668203ddb53e306e39 Mon Sep 17 00:00:00 2001 From: Artem Vysochyn Date: Thu, 15 Apr 2021 22:07:17 +0300 Subject: [PATCH] Fixed bug in VaultServiceRolesInstaller --- .../io/scalecube/security/vault/VaultServiceRolesInstaller.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vault/src/main/java/io/scalecube/security/vault/VaultServiceRolesInstaller.java b/vault/src/main/java/io/scalecube/security/vault/VaultServiceRolesInstaller.java index 1522455..a0eaa0f 100644 --- a/vault/src/main/java/io/scalecube/security/vault/VaultServiceRolesInstaller.java +++ b/vault/src/main/java/io/scalecube/security/vault/VaultServiceRolesInstaller.java @@ -166,7 +166,7 @@ public VaultServiceRolesInstaller roleTtl(String roleTtl) { * keys) to use it for machine-to-machine authentication. */ public Mono install() { - return Mono.fromRunnable(this::install0) + return Mono.defer(this::install0) .subscribeOn(Schedulers.boundedElastic()) .doOnSubscribe(s -> LOGGER.debug("[install] Installing vault service roles")) .doOnSuccess(s -> LOGGER.debug("[install][success] Installed vault service roles"))