Skip to content
This repository was archived by the owner on Dec 9, 2024. It is now read-only.

Commit c1e0d42

Browse files
authored
Merge pull request #81 from siegesmund/master
Corrects issue which prevents deploying binary function with sls deploy -f
2 parents 71f4c0d + 92b0cb4 commit c1e0d42

File tree

6 files changed

+6
-6
lines changed

6 files changed

+6
-6
lines changed

compile/functions/runtimes/base.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ class BaseRuntime {
9696

9797
getArtifactPath(functionObject) {
9898
return this.serverless.service.package.individually ?
99-
functionObject.artifact : this.serverless.service.package.artifact;
99+
functionObject.package.artifact : this.serverless.service.package.artifact;
100100
}
101101
}
102102

compile/functions/runtimes/tests/binary.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ describe('Binary', () => {
9898
})
9999

100100
it('should handle service artifact for individual function handler', () => {
101-
const functionObj = {handler: 'handler', artifact: '/path/to/zip_file.zip'}
101+
const functionObj = {handler: 'handler', package: { artifact: '/path/to/zip_file.zip'}}
102102
node.serverless.service.package = {individually: true};
103103
node.isValidFile = () => true
104104

compile/functions/runtimes/tests/node.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ describe('Node', () => {
145145
});
146146

147147
it('should handle service artifact for individual function handler', () => {
148-
const functionObj = {handler: 'handler.main', artifact: '/path/to/zip_file.zip'}
148+
const functionObj = {handler: 'handler.main', package: { artifact: '/path/to/zip_file.zip'}}
149149
node.serverless.service.package = {individually: true};
150150
node.isValidFile = () => true
151151

compile/functions/runtimes/tests/php.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ describe('Php', () => {
109109
})
110110

111111
it('should handle service artifact for individual function handler', () => {
112-
const functionObj = {handler: 'handler.main', artifact: '/path/to/zip_file.zip'}
112+
const functionObj = {handler: 'handler.main', package: { artifact: '/path/to/zip_file.zip'}}
113113
php.serverless.service.package = {individually: true};
114114
php.isValidFile = () => true
115115

compile/functions/runtimes/tests/python.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ describe('Python', () => {
111111
})
112112

113113
it('should handle service artifact for individual function handler', () => {
114-
const functionObj = {handler: 'handler.main', artifact: '/path/to/zip_file.zip'}
114+
const functionObj = {handler: 'handler.main', package: { artifact: '/path/to/zip_file.zip'}}
115115
node.serverless.service.package = {individually: true};
116116
node.isValidFile = () => true
117117

compile/functions/runtimes/tests/swift.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ describe('Swift', () => {
122122
})
123123

124124
it('should handle service artifact for individual function handler', () => {
125-
const functionObj = {handler: 'handler.main', artifact: '/path/to/zip_file.zip'}
125+
const functionObj = {handler: 'handler.main', package: { artifact: '/path/to/zip_file.zip'}}
126126
node.serverless.service.package = {individually: true};
127127
node.isValidFile = () => true
128128

0 commit comments

Comments
 (0)