convection 2.2.3 → 2.2.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
  SHA1:
3
- metadata.gz: 1cc9a19505a82416b030b023c4a0c26b1fed5ba7
4
- data.tar.gz: 52199f6b587c4407aa1343933044cb58e5c1aac7
3
+ metadata.gz: 0afd8b79047197917f58e30e5ad00a2ba415c406
4
+ data.tar.gz: 47933eb9c7297967ada1ccb4ec11f9e5d3302614
5
5
  SHA512:
6
- metadata.gz: d1f432b877726684a99488e7774312f7c038e34248d40d315fb163ecbada1924766c934318d1da23c115432c02f0bb2c8e96ee1784db31768381ee739c657f0f
7
- data.tar.gz: 40ab46a04114fe749a3ac5dc026b69512e9ab8e215b812356a81860323256be9d19ceeae7ec6d47afa46149a0e4622ee0f52205a9016c10bfac0bf7b5275bfcc
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.sub(/^AWS::/, 'aws_').underscore if respond_to?(: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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: convection
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.2.3
4
+ version: 2.2.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - John Manero