Merge pull request #659 from pguti778/patch-2

AWS: Change Default environment values
This commit is contained in:
Oleg Zhurakousky
2021-03-03 16:17:30 +01:00
committed by GitHub

View File

@@ -122,7 +122,7 @@ public class CustomRuntimeEventLoop {
}
private static FunctionInvocationWrapper locateFunction(FunctionCatalog functionCatalog, MediaType contentType) {
String handlerName = System.getenv("_HANDLER");
String handlerName = System.getenv("DEFAULT_HANDLER");
FunctionInvocationWrapper function = functionCatalog.lookup(handlerName, contentType.toString());
if (function == null) {
handlerName = System.getenv("spring.cloud.function.definition");