Skip to content

Commit 1604fb0

Browse files
authored
Merge pull request #166 from scalecube/develop
Prepare release
2 parents 70a90ce + cf945a7 commit 1604fb0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

config-vault/src/main/java/io/scalecube/config/vault/VaultInvoker.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ public class VaultInvoker {
2424
private static final Logger LOGGER = LoggerFactory.getLogger(VaultInvoker.class);
2525

2626
private static final int STATUS_CODE_FORBIDDEN = 403;
27-
public static final int STATUS_CODE_HELTH_OK = 200;
27+
public static final int STATUS_CODE_HEALTH_OK = 200;
2828
public static final int STATUS_CODE_RESPONSE_OK = 200;
2929
public static final int STATUS_CODE_RESPONSE_NO_DATA = 204;
3030

@@ -153,8 +153,8 @@ private void renewToken() throws VaultException {
153153
* @param vault vault
154154
*/
155155
private void checkVault(Vault vault) throws VaultException {
156-
RestResponse restResponse = vault.debug().health().getRestResponse();
157-
if (restResponse.getStatus() == STATUS_CODE_HELTH_OK) {
156+
RestResponse restResponse = vault.debug().health(true, null, null, null).getRestResponse();
157+
if (restResponse.getStatus() == STATUS_CODE_HEALTH_OK) {
158158
return;
159159
}
160160
throw new VaultException(bodyAsString(restResponse), restResponse.getStatus());

0 commit comments

Comments
 (0)