Skip to content

Commit 02b868d

Browse files
authored
Merge pull request #74 from epsylabs/feature/upgrade-python-requirements-plugin
[serverless-python-requirements] Make plugin compatible with version `6.0.0`
2 parents 6b4546f + 187632f commit 02b868d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

serverless/service/plugins/python_requirements.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ def enable(self, service):
3434
export = dict(self)
3535
export.pop("name", None)
3636

37-
if not export.get("dockerImage"):
38-
export["dockerImage"] = f"lambci/lambda:build-{service.provider.runtime}"
37+
if not self.dockerImage:
38+
export.pop("dockerImage", None)
3939

4040
service.custom.pythonRequirements = export

0 commit comments

Comments
 (0)