diff --git a/lib/main.js b/lib/main.js index 1e1eae9e..ac6851ea 100644 --- a/lib/main.js +++ b/lib/main.js @@ -362,7 +362,7 @@ Lambda.prototype._readArchive = function (program, archive_callback) { return archive_callback(err); } fs.readFile(program.deployZipfile, archive_callback); -}, +}; Lambda.prototype._archive = function (program, archive_callback) { if (program.deployZipfile && fs.existsSync(program.deployZipfile)) { @@ -682,8 +682,15 @@ Lambda.prototype.deploy = function (program) { if (err) { throw err; } - console.log('=> All tasks done. Results follow: '); - console.log(JSON.stringify(results, null, ' ')); + const resultsIsEmpty = results.filter(function(result) { + return result.filter(function(res) { + return res.length > 0; + }).length > 0; + }).length == 0; + if (!resultsIsEmpty) { + console.log('=> All tasks done. Results follow: '); + console.log(JSON.stringify(results, null, ' ')); + } }); }); };