cfn-model 0.5.3 → 0.5.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 527a99ce24b15e3dc115ecfc163034c4a01599632b0ef0afb94ae9a232058d35
4
- data.tar.gz: 3b230f07cad2a3369745a60684acbca599b6241fced5cb8c2c986e24304af258
3
+ metadata.gz: 36c20ced0b754136dabe47ee3af36326797590f4431a5f7998f20c5df22cb3a4
4
+ data.tar.gz: 463cc157ddbcc9f4c44161e65451e6e6e06f238527fab2bef402f685d9cad391
5
5
  SHA512:
6
- metadata.gz: a4569f552dbc5c8776daa0f82277c25ec1d2af7c7e00814574b9031bf4daf318e956b40add9297e0a45c6dcb12401603c8b84260ef7d6fbdcd1d98bee31b9158
7
- data.tar.gz: e8d001e530ccaeb57e05d9bcada2c914f7ef311e71912e9ac03bf5846c61389ed1d2b73c38a4ebdfb2e59a907b968b7d22d5f67b88c5dc7045bdd92b977fe0ec
6
+ metadata.gz: b77d89446d3a84ac10f367a3067874d58f8df9a11a8083c628e970f0810f62e350e4121cee38eb2d6ddb81fe57528f1e62ce6c615b62b3a67b025e6f83e359f7
7
+ data.tar.gz: d3d73394103028acfc9c0a99dadde2bf93970b88eefe34e85a3ccf958f25f58868b99518e4e6073a5b9de2a14fc51dc3121523d93517935fc6f5636bf050ebd2
@@ -133,7 +133,9 @@ class CfnModel
133
133
  # https://github.com/aws/serverless-application-model/issues/264
134
134
  if serverless_function.key?('Metadata') && serverless_function['Metadata'].key?('cfn_nag')
135
135
  cfn_hash['Resources'][resource_name]['Metadata'] = serverless_function['Metadata']
136
- cfn_hash['Resources'][resource_name + 'Role']['Metadata'] = serverless_function['Metadata']
136
+ unless serverless_function['Properties']['Role']
137
+ cfn_hash['Resources'][resource_name + 'Role']['Metadata'] = serverless_function['Metadata']
138
+ end
137
139
  end
138
140
  end
139
141
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cfn-model
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.3
4
+ version: 0.5.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eric Kascic
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-10-29 00:00:00.000000000 Z
11
+ date: 2020-11-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rubocop