Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit ed18810

Browse files
authoredJul 27, 2022
Fix the 'Test Connection' Button (#244)
1 parent 3b38d76 commit ed18810

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎src/main/java/com/datapipe/jenkins/vault/credentials/common/VaultHelper.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -60,11 +60,11 @@ static Map<String, String> getVaultSecret(@NonNull String secretPath,
6060
try {
6161
VaultConfig vaultConfig = configuration.getVaultConfig();
6262

63-
if (prefixPath != null) {
63+
if (prefixPath != null && ! prefixPath.isEmpty()) {
6464
vaultConfig.prefixPath(prefixPath);
6565
}
6666

67-
if (namespace != null) {
67+
if (namespace != null && ! namespace.isEmpty()) {
6868
vaultConfig.nameSpace(namespace);
6969
}
7070

0 commit comments

Comments
 (0)
Please sign in to comment.