Skip to content

Commit 9e3b49d

Browse files
committed
rename flag
1 parent 6b32ff1 commit 9e3b49d

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ The plugin configurations are simple:
133133
| useDocker | Boolean indicating whether to package pip dependencies using Docker. Set this to true if your project uses platform-specific compiled libraries like numpy. Requires a [Docker installation](https://www.docker.com/get-docker). | Yes. Defaults to `false` |
134134
| dockerImage | The Docker image to use to compile functions if `useDocker` is set to `true`. Must be specified as `repository:tag`. If the image doesn't exist on the system, it will be downloaded. The initial download may take some time. | Yes. Defaults to `lambci/lambda:build-${provider.runtime}` |
135135
| containerName | The desired name for the Docker container. | Yes. Defaults to `serverless-package-python-functions` |
136-
| usePackagingErrorAlerts | Boolean indicating whether you want to stop deployment when packaging errors are detected. Example errors include: `useDocker` is enabled but the Docker service is not running, pip finds dependency mismatches, virtual environment errrors, etc.. When an error is detected, this will prompt via commandline to continue or abort deploy. | Yes. Defaults to `false` |
136+
| abortOnPackagingErrors | Boolean indicating whether you want to stop deployment when packaging errors are detected. Example errors include: `useDocker` is enabled but the Docker service is not running, pip finds dependency mismatches, virtual environment errrors, etc.. When an error is detected, this will prompt via commandline to continue or abort deploy. | Yes. Defaults to `false` |
137137

138138
At the function level, you:
139139
- Specify `name` to give your function a name. The plugin uses the function's name as the name of the zip artifact

index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ class PkgPyFuncs {
3333
this.dockerImage = config.dockerImage || `lambci/lambda:build-${this.serverless.service.provider.runtime}`
3434
this.containerName = config.containerName || 'serverless-package-python-functions'
3535
this.mountSSH = config.mountSSH || false
36-
this.usePackagingErrorAlerts = config.usePackagingErrorAlerts || false
36+
this.abortOnPackagingErrors = config.abortOnPackagingErrors || false
3737
this.dockerServicePath = '/var/task'
3838
}
3939

@@ -119,7 +119,7 @@ class PkgPyFuncs {
119119
const errorText = ret.stderr.toString().trim()
120120
this.log(errorText) // prints stderr
121121

122-
if (this.usePackagingErrorAlerts){
122+
if (this.abortOnPackagingErrors){
123123
const countErrorNewLines = errorText.split('\n').length
124124

125125
if(countErrorNewLines < 2 && errorText.toLowerCase().includes('git clone')){

0 commit comments

Comments
 (0)