remove todo and ensure createstack returns promise

This commit is contained in:
John McKim 2016-08-30 08:40:14 +10:00
parent b1143c4b9f
commit ff8a6cc71f
2 changed files with 3 additions and 2 deletions

View File

@ -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}`);
}

View File

@ -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',