Skip to content

Commit

Permalink
Merge pull request #26 from mysense-ai/bugfix/not-respecting-cloudfor…
Browse files Browse the repository at this point in the history
…mation-description

fix: ensure cloud formation description is respected if existing
  • Loading branch information
monsagri authored Apr 1, 2020
2 parents eb00eab + 13064d0 commit a0dc5ef
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 a0dc5ef

Please sign in to comment.