Skip to content

Commit

Permalink
fix: Use updated Bundling class
Browse files Browse the repository at this point in the history
  • Loading branch information
setu4993 committed Dec 18, 2021
1 parent 5d58430 commit 6e6f594
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions packages/@aws-cdk/aws-lambda-python/lib/function.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import * as fs from 'fs';
import * as path from 'path';
import * as lambda from '@aws-cdk/aws-lambda';
import { AssetHashType } from '@aws-cdk/core';
import { bundle } from './bundling';
import { Bundling } from './bundling';

// keep this import separate from other imports to reduce chance for merge conflicts with v2-main
// eslint-disable-next-line no-duplicate-imports, import/order
Expand Down Expand Up @@ -107,7 +107,7 @@ export class PythonFunction extends lambda.Function {
super(scope, id, {
...props,
runtime,
code: bundle({
code: Bundling.bundle({
runtime,
architecture,
entry,
Expand Down
4 changes: 2 additions & 2 deletions packages/@aws-cdk/aws-lambda-python/lib/layer.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import * as path from 'path';
import * as lambda from '@aws-cdk/aws-lambda';
import { bundle } from './bundling';
import { Bundling } from './bundling';

// keep this import separate from other imports to reduce chance for merge conflicts with v2-main
// eslint-disable-next-line no-duplicate-imports, import/order
Expand Down Expand Up @@ -54,7 +54,7 @@ export class PythonLayerVersion extends lambda.LayerVersion {
super(scope, id, {
...props,
compatibleRuntimes,
code: bundle({
code: Bundling.bundle({
entry,
runtime,
architecture,
Expand Down

0 comments on commit 6e6f594

Please sign in to comment.