mirror of
https://github.com/serverless/serverless.git
synced 2026-01-18 14:58:43 +00:00
remove todo and ensure createstack returns promise
This commit is contained in:
parent
b1143c4b9f
commit
ff8a6cc71f
@ -106,7 +106,7 @@ class AwsCompileFunctions {
|
||||
const artifactFilePath = this.serverless.service.package.individually ?
|
||||
functionObject.artifact :
|
||||
this.serverless.service.package.artifact;
|
||||
// TODO:
|
||||
|
||||
if (!artifactFilePath) {
|
||||
throw new Error(`No artifact path is set for function: ${functionLogicalName}`);
|
||||
}
|
||||
|
||||
@ -93,7 +93,8 @@ module.exports = {
|
||||
|
||||
// just write the template to disk if a deployment should not be performed
|
||||
if (this.options.noDeploy) {
|
||||
return this.writeCreateTemplateToDisk();
|
||||
return BbPromise.bind(this)
|
||||
.then(this.writeCreateTemplateToDisk);
|
||||
}
|
||||
|
||||
return this.sdk.request('CloudFormation',
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user