convection 2.2.3 → 2.2.4
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/lib/convection/dsl/terraform_intrinsic_functions.rb +4 -4
- 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: 0afd8b79047197917f58e30e5ad00a2ba415c406
|
4
|
+
data.tar.gz: 47933eb9c7297967ada1ccb4ec11f9e5d3302614
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 89d42f655f49a0bb2900bb6394a79dbcafec3eb6ade1c88bf297dd435e643ea7d700793f62ef2c879adae8e6a3f7858035e3d6aab2fef9f1e846aa3653ba9aba
|
7
|
+
data.tar.gz: dc87f33d44b42d279b74f590170d84f2d2e4cc37e6380cc65d6e42106160e8a61c35d7dda5c9928614fa3ae54e7f2947f1ca7e2ef366c6cb73f4d2fc4539a532
|
@@ -101,10 +101,10 @@ module Convection
|
|
101
101
|
end
|
102
102
|
|
103
103
|
def terraform_resource_type(resource_name)
|
104
|
-
return type
|
105
|
-
return resources[resource_name].type.underscore if respond_to?(:resources) && resources[resource_name]
|
106
|
-
return all_resources[resource_name].type.underscore if respond_to?(:all_resources) && all_resources[resource_name]
|
107
|
-
return parent.resources[resource_name].type.underscore if respond_to?(:parent) && parent.resources[resource_name]
|
104
|
+
return type if respond_to?(:name) && respond_to?(:type) && resource_name == name
|
105
|
+
return resources[resource_name].type.underscore.tr('/', '_') if respond_to?(:resources) && resources[resource_name]
|
106
|
+
return all_resources[resource_name].type.underscore.tr('/', '_') if respond_to?(:all_resources) && all_resources[resource_name]
|
107
|
+
return parent.resources[resource_name].type.underscore.tr('/', '_') if respond_to?(:parent) && parent.resources[resource_name]
|
108
108
|
|
109
109
|
'todo_fixme_see_resource_type'
|
110
110
|
end
|