Skip to content

Commit

Permalink
Add missing checks
Browse files Browse the repository at this point in the history
  • Loading branch information
shaug committed Mar 28, 2024
1 parent 76f7f34 commit 1f895e8
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
3 changes: 3 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ class ServerlessPythonRequirements {
dockerizePip: false,
dockerSsh: false,
dockerPrivateKey: null,
dockerGit: false,
dockerGitOptions: null,
dockerImage: null,
dockerFile: null,
dockerEnv: false,
Expand Down Expand Up @@ -86,6 +88,7 @@ class ServerlessPythonRequirements {
if (
!options.dockerizePip &&
(options.dockerSsh ||
options.dockerGit ||
options.dockerImage ||
options.dockerFile ||
options.dockerPrivateKey)
Expand Down
4 changes: 4 additions & 0 deletions tests/base/serverless.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ custom:
dockerizePip: ${env:dockerizePip, self:custom.defaults.dockerizePip}
dockerSsh: ${env:dockerSsh, self:custom.defaults.dockerSsh}
dockerPrivateKey: ${env:dockerPrivateKey, self:custom.defaults.dockerPrivateKey}
dockerGit: ${env:dockerGit, self:custom.defaults.dockerGit}
dockerGitOptions: ${env:dockerGitOptions, self:custom.defaults.dockerGitOptions}
dockerImage: ${env:dockerImage, self:custom.defaults.dockerImage}
slim: ${env:slim, self:custom.defaults.slim}
slimPatterns: ${file(./slimPatterns.yml):slimPatterns, self:custom.defaults.slimPatterns}
Expand All @@ -29,6 +31,8 @@ custom:
dockerizePip: false
dockerSsh: false
dockerPrivateKey: ''
dockerGit: false
dockerGitOptions: ''
dockerImage: ''
individually: false
useStaticCache: true
Expand Down

0 comments on commit 1f895e8

Please sign in to comment.