Skip to content

Commit

Permalink
refactor: Support conceal option in modern logs
Browse files Browse the repository at this point in the history
  • Loading branch information
pgrzesik committed Jan 14, 2022
1 parent 427920e commit 0dacf1b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/plugins/aws/info/display.js
Expand Up @@ -45,10 +45,11 @@ module.exports = {
const description = apiKeyInfo.description ? ` - ${apiKeyInfo.description}` : '';
if (conceal) {
apiKeysMessage += `\n ${apiKeyInfo.name}${description}`;
outputSectionItems.push(`${apiKeyInfo.name}${description}`);
} else {
apiKeysMessage += `\n ${apiKeyInfo.name}: ${apiKeyInfo.value}${description}`;
outputSectionItems.push(`${apiKeyInfo.name}: ${apiKeyInfo.value}${description}`);
}
outputSectionItems.push(`${apiKeyInfo.name}: ${apiKeyInfo.value}${description}`);
});
this.serverless.serviceOutputs.set('api keys', outputSectionItems);
} else {
Expand Down

0 comments on commit 0dacf1b

Please sign in to comment.