From 8c1f4a99dcdd1a52500b34c6c1a36f23193cf805 Mon Sep 17 00:00:00 2001 From: Remigiusz Janeczek Date: Wed, 23 Sep 2020 12:33:02 +0200 Subject: Fix undefined tenant bug in deployment status link Issue-ID: DCAEGEN2-2452 Signed-off-by: Remigiusz Janeczek Change-Id: Ie650724d2a669f3388e93290ae5b840e3a9efb35 --- lib/dcae-deployments.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib') 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) }; }; -- cgit 1.2.3-korg