mirror of
https://github.com/floci-io/floci.git
synced 2026-11-28 08:09:43 -05:00
fix(lambda): return current reserved concurrency in GetFunction (#4592)
* fix(lambda): return current reserved concurrency in GetFunction * fix(lambda): omit concurrency for qualified GetFunction reads
This commit is contained in:
1 parent
89344b76dc
commit
071a170ce9
4 files changed
+288
No files matched your search
@@ -123,6 +123,12 @@ public class LambdaController {
|
||||
tags.forEach(tagsNode::put);
|
||||
}
|
||||
|
||||
Integer reservedConcurrency = fn.getReservedConcurrentExecutions();
|
||||
String effectiveQualifier = LambdaArnUtils.resolveWithQualifier(functionName, qualifier).qualifier();
|
||||
if (effectiveQualifier == null && reservedConcurrency != null) {
|
||||
root.putObject("Concurrency").put("ReservedConcurrentExecutions", reservedConcurrency);
|
||||
}
|
||||
|
||||
return Response.ok(root).build();
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user