Skip to content

Commit

Permalink
chore(lambda): invalid python sample code generated
Browse files Browse the repository at this point in the history
jsii-rosettta has a bug which renders invalid python when a newline is included in a string literal. Remove that string literal for now.

Fixes #13035
  • Loading branch information
Elad Ben-Israel authored Feb 14, 2021
1 parent 4684c83 commit f0372af
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/@aws-cdk/aws-lambda/test/integ.autoscaling.lit.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ class TestStack extends cdk.Stack {
super(scope, id);

const fn = new lambda.Function(this, 'MyLambda', {
code: new lambda.InlineCode('exports.handler = async () => {\nconsole.log(\'hello world\');\n};'),
code: new lambda.InlineCode('exports.handler = async () => { console.log(\'hello world\'); };'),
handler: 'index.handler',
runtime: lambda.Runtime.NODEJS_10_X,
});
Expand Down Expand Up @@ -50,4 +50,4 @@ const app = new cdk.App();

new TestStack(app, 'aws-lambda-autoscaling');

app.synth();
app.synth();

0 comments on commit f0372af

Please sign in to comment.