aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorRemigiusz Janeczek <remigiusz.janeczek@nokia.com>2020-09-23 12:33:02 +0200
committerRemigiusz Janeczek <remigiusz.janeczek@nokia.com>2020-09-23 12:35:41 +0200
commit8c1f4a99dcdd1a52500b34c6c1a36f23193cf805 (patch)
tree7772fdd5131da911ccca7e5fd93bcc810864349e /lib
parentbc243113b0eb99301fb952472bd880e2de53fb24 (diff)
Fix undefined tenant bug in deployment status link4.4.1
Issue-ID: DCAEGEN2-2452 Signed-off-by: Remigiusz Janeczek <remigiusz.janeczek@nokia.com> Change-Id: Ie650724d2a669f3388e93290ae5b840e3a9efb35
Diffstat (limited to 'lib')
-rw-r--r--lib/dcae-deployments.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/dcae-deployments.js b/lib/dcae-deployments.js
index 708a949..6f9f782 100644
--- a/lib/dcae-deployments.js
+++ b/lib/dcae-deployments.js
@@ -1,5 +1,6 @@
/*
Copyright(c) 2017-2020 AT&T Intellectual Property. All rights reserved.
+Copyright(c) 2020 Nokia. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
@@ -64,7 +65,7 @@ const createLinks = function(req, deploymentId, executionId) {
var baseURL = req.protocol + '://' + req.get('Host') + req.app.mountpath + '/' + deploymentId;
return {
self: baseURL,
- status: baseURL + '/operation/' + executionId + '?cfy_tenant_name=' + req.query.cfy_tenant_name || DEFAULT_TENANT
+ status: baseURL + '/operation/' + executionId + '?cfy_tenant_name=' + (req.query.cfy_tenant_name || DEFAULT_TENANT)
};
};