From 13064d0d108839423e42740097451262ea85b5cd Mon Sep 17 00:00:00 2001 From: Fabian Date: Wed, 1 Apr 2020 11:00:17 +0100 Subject: [PATCH] fix: ensure cloud formation description is respected if existing --- src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index 737e3ca..f496a5f 100644 --- a/src/index.ts +++ b/src/index.ts @@ -133,7 +133,7 @@ class ServerlessSSMPublish { this.throwError(`No Cloud Formation Output found for source ${slsParam.source}`); throw new Error(`No Cloud Formation Output found for source ${slsParam.source}`); // Throwing again as typescript won't recognise throwError as throwing } - return { ...slsParam, value: foundCloudFormationParam.value}; + return { ...slsParam, value: foundCloudFormationParam.value, description: foundCloudFormationParam.description || slsParam.description }; }); // Put params on this for following logic