aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorAlex Shatov <alexs@att.com>2018-05-09 12:31:48 -0400
committerAlex Shatov <alexs@att.com>2018-05-09 12:31:48 -0400
commitbfdffbbb60b0ee6cff12022bbb17bd075c1ffd51 (patch)
tree05989ff73861a4a5d3fd2a76e09ad794f15b1413 /lib
parentd1195c61ca01888d8752a84a2c008719b24b6ba5 (diff)
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 <alexs@att.com> Issue-ID: DCAEGEN2-487
Diffstat (limited to 'lib')
-rw-r--r--lib/cloudify.js3
1 files changed, 1 insertions, 2 deletions
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