convection 2.2.20 → 2.2.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/bin/convection +2 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: d054a7656e579dc44c97e7372cfca795f6183b22
|
|
4
|
+
data.tar.gz: d292a8cf0f757a200475a18aa68174d4fa3fe990
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: b4d3a91c298467cc019096c3b07d21547240cdb864e148c5bf9978939d0b1da6720ad3836a8533d8a904ae665d44825ed7cc8beb8abf7f760d9f7cdab8425d49
|
|
7
|
+
data.tar.gz: e37c2b8475e0ce90a87ab0540ee5cb698f951a074bb4594004bd7d67766ec607cd64f9a297481917f84396e8e3ae1f8896bbadf1d1068c1194adc39fb0cc807d
|
data/bin/convection
CHANGED
|
@@ -139,6 +139,7 @@ module Convection
|
|
|
139
139
|
say "Resource #{cf_resource[:physical_resource_id].inspect} #{cf_resource[:logical_resource_id].inspect}:"
|
|
140
140
|
|
|
141
141
|
tf_resource = tf_resource_for(physical_resource_id: cf_resource[:physical_resource_id], resources: terraform_resources)
|
|
142
|
+
|
|
142
143
|
if tf_resource[:attribute_key] && tf_resource[:partial]
|
|
143
144
|
say " * Found physical ID included in Terraform resource #{tf_resource[:logical_resource_id].inspect} under attribute #{tf_resource[:attribute_key].inspect} with value #{tf_resource[:value].inspect}. Please validate this resource is included in state and configuration.", :yellow
|
|
144
145
|
elsif tf_resource[:attribute_key] && !tf_resource[:partial]
|
|
@@ -325,7 +326,7 @@ module Convection
|
|
|
325
326
|
key = resource['primary'].key(physical_resource_id)
|
|
326
327
|
return { attribute_key: key, logical_id: logical_id, partial: false, value: physical_resource_id } if key
|
|
327
328
|
|
|
328
|
-
key, value = resource['primary'].find { |v| v.include?(physical_resource_id) }
|
|
329
|
+
key, value = resource['primary'].find { |k,v| v.include?(physical_resource_id) }
|
|
329
330
|
return { attribute_key: key, logical_id: logical_id, partial: true, value: value }
|
|
330
331
|
end
|
|
331
332
|
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: convection
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 2.2.
|
|
4
|
+
version: 2.2.21
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- John Manero
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2018-03-
|
|
11
|
+
date: 2018-03-07 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: activesupport
|