Skip to content

Commit

Permalink
fix: ensure cloud formation description is respected if existing
Browse files Browse the repository at this point in the history
  • Loading branch information
Fabian committed Apr 1, 2020
1 parent 5b76c62 commit 13064d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 13064d0

Please sign in to comment.