aboutsummaryrefslogtreecommitdiffstats
path: root/lib/cloudify.js
diff options
context:
space:
mode:
Diffstat (limited to 'lib/cloudify.js')
-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