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 +4 -4
- data/lib/cfn-model/transforms/serverless.rb +3 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 36c20ced0b754136dabe47ee3af36326797590f4431a5f7998f20c5df22cb3a4
|
4
|
+
data.tar.gz: 463cc157ddbcc9f4c44161e65451e6e6e06f238527fab2bef402f685d9cad391
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
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.
|
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-
|
11
|
+
date: 2020-11-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rubocop
|