convection 2.2.4 → 2.2.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/convection +2 -3
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 58179cf70528442bd10b2fdce205eee02133958e
|
4
|
+
data.tar.gz: 52ef55b55c5d479b8a305a9aabc4e2aeeab1a7fa
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8d57bf00e33c51e41231893bc944ee202e1e353abdb3cf98f1d085f447f09fce16b7a9fa9b032833c46e6afec3c8cde035fb1484c89cfe1a54adba250c84d0c5
|
7
|
+
data.tar.gz: d4360641cddeff614729e509521c3d84fecedf0f8b1f917519c6d6285b08f7adf0c2f7339f9aaa4f499b45df50f73ca91b00953b3729250affa25b9b20c4b9f3
|
data/bin/convection
CHANGED
@@ -147,6 +147,8 @@ module Convection
|
|
147
147
|
require 'convection/dsl/terraform_intrinsic_functions'
|
148
148
|
Convection::DSL::TerraformIntrinsicFunctions.overload(Convection::DSL::IntrinsicFunctions.mixers)
|
149
149
|
|
150
|
+
# Reload all resources and collection to ensure configuration is up to date. Amazon psuedo functions will have changed their return values.
|
151
|
+
template.execute
|
150
152
|
template.resource_collections.each(&method(:import_resources))
|
151
153
|
template.resources.each(&method(:import_resources))
|
152
154
|
end
|
@@ -159,9 +161,6 @@ module Convection
|
|
159
161
|
private
|
160
162
|
|
161
163
|
def import_resources(_resource_name, resource)
|
162
|
-
# Reload this resource to ensure configuration is up to date. Amazon psuedo functions will have changed their return values.
|
163
|
-
resource.execute
|
164
|
-
|
165
164
|
if resource.respond_to?(:to_hcl_json)
|
166
165
|
empty_directory options[:output_directory]
|
167
166
|
destination = File.join(options[:output_directory], "#{resource.name.downcase}.tf.json")
|