cloudformation-tool 0.7.0 → 0.7.1
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
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 27017369118ae8d9ab43d867ec66ac1a73a37c2c
|
|
4
|
+
data.tar.gz: f36ea6fb5a8822bef100f5ee035cf5724da7052c
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 1b96a4796add1c784474ff7dd4cb31eb2b2fa2504d6547a56837fda56142cf195b112696cb41e898a8a62db06be8ef5b839080edb176b73882acb5c3f6f0645c
|
|
7
|
+
data.tar.gz: 6bfefbe91458339ab162a5ccbe8847310e1acd00e591c582c464d0f8124983b0cee7536c287976cdaea9275bb892e3a3fa9a067b33f4174846972e013d7f2bbd
|
|
@@ -133,7 +133,7 @@ module CloudFormationTool
|
|
|
133
133
|
# a parent template has what it takes to resolve the ref
|
|
134
134
|
value
|
|
135
135
|
else # parameters are set for this template - we can try to resolve
|
|
136
|
-
res = @params[value['Ref']] || (@data['Parameters']||{})[value['Ref']]
|
|
136
|
+
res = @params[value['Ref']] || ((@data['Parameters']||{})[value['Ref']] || {})['Default']
|
|
137
137
|
if res.nil?
|
|
138
138
|
raise CloudFormationTool::Errors::AppError, "Reference #{value['Ref']} can't be resolved"
|
|
139
139
|
end
|
|
@@ -162,6 +162,7 @@ module CloudFormationTool
|
|
|
162
162
|
elsif (key == "Code") and (val["URL"])
|
|
163
163
|
# Support Lambda Code from arbitrary URLs
|
|
164
164
|
url = resolveVal(val["URL"])
|
|
165
|
+
log "Resolving lambda code URL: #{url}"
|
|
165
166
|
if url.is_a? String # resolving works
|
|
166
167
|
LambdaCode.new(url: url).to_cloudformation
|
|
167
168
|
else # resolving didn't work - we probably don't have parameters
|
|
@@ -175,7 +176,7 @@ module CloudFormationTool
|
|
|
175
176
|
else # resolving didn't work - we probably don't have parameters
|
|
176
177
|
val
|
|
177
178
|
end
|
|
178
|
-
else
|
|
179
|
+
else
|
|
179
180
|
load_files(val)
|
|
180
181
|
end
|
|
181
182
|
dict
|
|
@@ -49,7 +49,7 @@ module CloudFormationTool
|
|
|
49
49
|
when Net::HTTPRedirection then
|
|
50
50
|
location = response['location']
|
|
51
51
|
log "redirected to #{location}"
|
|
52
|
-
|
|
52
|
+
fetch_from_url(location, limit - 1)
|
|
53
53
|
else
|
|
54
54
|
raise CloudFormationTool::Errors::AppError, "Error downloading #{url}: #{response.value}"
|
|
55
55
|
end
|