Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
mgyucht committed Nov 24, 2023
1 parent 894acbd commit 2245352
Showing 1 changed file with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,13 +1,21 @@
package com.databricks.sdk.core;

import com.databricks.sdk.core.utils.Environment;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import java.util.Map;
import java.util.function.Supplier;

public interface ConfigResolving {

default void resolveConfig(DatabricksConfig config, Supplier<Map<String, String>> envGetter) {
String[] path = envGetter.get().get("PATH").split(":");
String pathStr = envGetter.get().get("PATH");
List<String> path = new ArrayList<>();
if (pathStr != null) {
path.addAll(Arrays.asList(pathStr.split(":")));
}
Environment env = new Environment(envGetter.get(), path);
config.resolve(env);
}
Expand Down

0 comments on commit 2245352

Please sign in to comment.