This is an automated email from the ASF dual-hosted git repository.

davsclaus pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel.git


The following commit(s) were added to refs/heads/main by this push:
     new 1efa2cb  [Lambda] Also check CamelAwsLambdaZipFile in createFunction 
(#5678)
1efa2cb is described below

commit 1efa2cb096ba4cd41bf128ed00ed28642c2d1375
Author: Andrej Vaňo <[email protected]>
AuthorDate: Wed Jun 16 17:43:16 2021 +0200

    [Lambda] Also check CamelAwsLambdaZipFile in createFunction (#5678)
---
 .../java/org/apache/camel/component/aws2/lambda/Lambda2Producer.java     | 1 +
 1 file changed, 1 insertion(+)

diff --git 
a/components/camel-aws/camel-aws2-lambda/src/main/java/org/apache/camel/component/aws2/lambda/Lambda2Producer.java
 
b/components/camel-aws/camel-aws2-lambda/src/main/java/org/apache/camel/component/aws2/lambda/Lambda2Producer.java
index cfd5660..19fd833 100644
--- 
a/components/camel-aws/camel-aws2-lambda/src/main/java/org/apache/camel/component/aws2/lambda/Lambda2Producer.java
+++ 
b/components/camel-aws/camel-aws2-lambda/src/main/java/org/apache/camel/component/aws2/lambda/Lambda2Producer.java
@@ -270,6 +270,7 @@ public class Lambda2Producer extends DefaultProducer {
             }
 
             if (ObjectHelper.isNotEmpty(exchange.getIn().getBody())
+                    || 
ObjectHelper.isNotEmpty(exchange.getIn().getHeader(Lambda2Constants.ZIP_FILE))
                     || 
(ObjectHelper.isNotEmpty(exchange.getIn().getHeader(Lambda2Constants.S3_BUCKET))
                             && 
ObjectHelper.isNotEmpty(exchange.getIn().getHeader(Lambda2Constants.S3_KEY)))) {
                 builder.code(functionCode.build());

Reply via email to