From bfdffbbb60b0ee6cff12022bbb17bd075c1ffd51 Mon Sep 17 00:00:00 2001 From: Alex Shatov Date: Wed, 9 May 2018 12:31:48 -0400 Subject: 2.1.4 - fixed "value" argument is out of bounds - using the original "adm-zip": "0.4.7" because the latest "adm-zip": "0.4.9" is broken - external version 2.1.4, internal version 4.4.4 - unit test code coverage Statements : 83.99% ( 939/1118 ) Branches : 62.75% ( 320/510 ) Functions : 81.15% ( 155/191 ) Lines : 84.13% ( 928/1103 ) Change-Id: I7e82b1d7a51c562eb88cffbc12a0bfa0d92eebee Signed-off-by: Alex Shatov Issue-ID: DCAEGEN2-487 --- lib/cloudify.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'lib') diff --git a/lib/cloudify.js b/lib/cloudify.js index 51be6e1..90e7dff 100644 --- a/lib/cloudify.js +++ b/lib/cloudify.js @@ -207,8 +207,7 @@ exports.uploadBlueprint = function(req, bpid, blueprint) { // Cloudify API wants a gzipped tar of a directory, not the blueprint text const zip = new admzip(); zip.addFile('work/', new Buffer(0)); - const blueprint_yaml = blueprint.replace(/\r\n/g, "\n").replace(/\r/g, "\n"); - zip.addFile('work/blueprint.yaml', new Buffer(blueprint_yaml, 'utf8')); + zip.addFile('work/blueprint.yaml', new Buffer(blueprint, 'utf8')); const zip_buffer = zip.toBuffer(); // Set up the HTTP PUT request -- cgit 1.2.3-korg