File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change 11node_modules
2+ .idea
Original file line number Diff line number Diff line change @@ -24,7 +24,11 @@ class ServerlessAWSPseudoParameters {
2424
2525 // loop through all resources, and check all (string) properties for any #{AWS::}
2626 // reference. If found, replace the value with an Fn::Sub reference
27- Object . keys ( resources ) . forEach ( identifier => replaceChildNodes ( resources [ identifier ] . Properties , identifier ) ) ;
27+ Object . keys ( resources ) . forEach ( identifier => {
28+ if ( "Properties" in resources [ identifier ] ) {
29+ replaceChildNodes ( resources [ identifier ] . Properties , identifier )
30+ }
31+ } ) ;
2832
2933 function isDict ( v ) {
3034 return typeof v === 'object' && v !== null && ! ( v instanceof Array ) && ! ( v instanceof Date ) ;
You can’t perform that action at this time.
0 commit comments