cloudformation-tool 1.3.2 → 1.3.3
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/cloud_formation_tool/cloud_init.rb +1 -1
- data/lib/cloud_formation_tool/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cf743c1435279da320c97cda190fe35def28caca80c55a11a989907f1e89b651
|
4
|
+
data.tar.gz: 767c257e21e7b6b0870a42a4f4558eafc664a9fbc6682818ad770ca2db2da696
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2f3b41048e82ce751e3c8a662a821d5174beaa1747fe7c7f61851395b544eef40e1309708acfd22481e51d4e4dcd4b96e4f875223a26953d76bc5c37e659d932
|
7
|
+
data.tar.gz: 7ecc1837752642964bcf0d3942d137cc80201f78355a2e84cfd3cca1c821be240811b45eab432ad8daa130983eb67f6b0a4bf6ee5f1be50cff1b8163ae958f88
|
@@ -45,7 +45,7 @@ module CloudFormationTool
|
|
45
45
|
def encode(allow_gzip = true)
|
46
46
|
yamlout = compile
|
47
47
|
usegzip = false
|
48
|
-
if allow_gzip and yamlout.size >
|
48
|
+
if allow_gzip and yamlout.size > 16000 # max AWS EC2 user data size - try compressing it
|
49
49
|
yamlout = Zlib::Deflate.new(nil, 31).deflate(yamlout, Zlib::FINISH) # 31 is the magic word to have deflate create a gzip compatible header
|
50
50
|
usegzip = true
|
51
51
|
end
|