aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/cloudify.js8
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/cloudify.js b/lib/cloudify.js
index 0dbb876..c0504af 100644
--- a/lib/cloudify.js
+++ b/lib/cloudify.js
@@ -23,6 +23,8 @@ const FINISHED = [ "terminated", "cancelled", "failed" ];
const RETRY_INTERVAL = 5000; // Every 5 seconds
const MAX_TRIES = 720; // Up to 1 hour
+const TENANT = "default_tenant"; // Tenant name for Cloudify 4.x
+
const doRequest = require('./promise_request').doRequest;
const repeat = require('./repeat');
const admzip = require('adm-zip');
@@ -332,6 +334,12 @@ function addAuthToOptions(reqOptions) {
if (!!cfyAuth && cfyAuth !== "undefined:undefined") {
reqOptions.auth = cfyAuth;
}
+ if (reqOptions.headers) {
+ reqOptions.headers.Tenant = TENANT;
+ }
+ else {
+ reqOptions.headers = {"Tenant" : TENANT};
+ }
}
// Set a logger