Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/main/java/com/cars/framework/secrets/DockerSecrets.java
Original file line number Diff line number Diff line change
Expand Up @@ -56,13 +56,13 @@ public static Map<String, String> loadFromFile(File secretsFile)
public static Map<String, String> load(File secretsDir) throws DockerSecretLoadException {

if (!secretsDir.exists()) {
throw new DockerSecretLoadException("Unable to find any secrets under [" + SECRETS_DIR + "]");
throw new DockerSecretLoadException("Unable to find any secrets under [" + secretsDir + "]");
}

File[] secretFiles = secretsDir.listFiles();

if (secretFiles == null || secretFiles.length == 0) {
throw new DockerSecretLoadException("Unable to find any secrets under [" + SECRETS_DIR + "]");
throw new DockerSecretLoadException("Unable to find any secrets under [" + secretsDir + "]");
}

Map<String, String> secrets = new HashMap<>();
Expand Down