From ffeff0d659fcca2589c8489ccba646adb6ed4cf6 Mon Sep 17 00:00:00 2001 From: Kamil Burzynski Date: Wed, 23 Dec 2015 18:42:14 +0100 Subject: [PATCH] 'No updates to be performed' in resources deploy is not an error. --- lib/actions/ResourcesDeploy.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/actions/ResourcesDeploy.js b/lib/actions/ResourcesDeploy.js index 2c912e321..fc9815178 100644 --- a/lib/actions/ResourcesDeploy.js +++ b/lib/actions/ResourcesDeploy.js @@ -248,7 +248,11 @@ usage: serverless resources deploy`, }); } else { - return BbPromise.reject(new SError(e)); + if( e.message.indexOf('No updates are to be performed.') !== -1) { + return BbPromise.resolve({}); + } else { + return BbPromise.reject(new SError(e)); + } } }); }