Skip to content
This repository has been archived by the owner on May 23, 2024. It is now read-only.

Commit

Permalink
Check if properties map is empty in CFN #24
Browse files Browse the repository at this point in the history
  • Loading branch information
iann0036 committed Feb 9, 2019
1 parent d779b05 commit 4ebfbf3
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion bg.js
Original file line number Diff line number Diff line change
Expand Up @@ -3470,10 +3470,19 @@ function outputMapCfn(index, service, type, options, region, was_blocked, logica
`;
}

output += ` ${logicalId}:${was_blocked ? ' # blocked' : ''}
if (params.trim() == "") {
output += ` ${logicalId}:${was_blocked ? ' # blocked' : ''}
Type: "${type}"

`;
} else {
output += ` ${logicalId}:${was_blocked ? ' # blocked' : ''}
Type: "${type}"
Properties:${params}
`;
}



return output;
}
Expand Down

0 comments on commit 4ebfbf3

Please sign in to comment.