From ca00a932eae5e706f01519612fce1015c9ff9d58 Mon Sep 17 00:00:00 2001 From: Alex Shatov Date: Thu, 6 Dec 2018 10:16:43 -0500 Subject: 3.1.0/5.1.0 - check for finished deployment - external version 3.1.0 - internal version 5.1.0 for code change - no API change - check for finished deployment creation - success or failure - stop querying cloudify manager on failed deployment creation - use optional $CONSUL_URL to get url of consul - improved info used for audit and logging and responses - added more unit tests unit test coverage summary Statements : 80.99% ( 946/1168 ) Branches : 58.22% ( 294/505 ) Functions : 81.28% ( 165/203 ) Lines : 81.53% ( 936/1148 ) Change-Id: I831cd0db0d2e148e6da4c9190495aacf72e2d39c Signed-off-by: Alex Shatov Issue-ID: DCAEGEN2-929 --- lib/consul.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/consul.js') diff --git a/lib/consul.js b/lib/consul.js index 40de84b..a190093 100644 --- a/lib/consul.js +++ b/lib/consul.js @@ -19,7 +19,7 @@ See the License for the specific language governing permissions and limitations const KEY = '/v1/kv/'; const SERVICE = '/v1/catalog/service/'; const CONSUL = 'consul'; -const CONSUL_URL = 'http://' + (process.env.CONSUL_HOST || CONSUL) + ':8500'; +const CONSUL_URL = process.env.CONSUL_URL || ('http://' + (process.env.CONSUL_HOST || CONSUL) + ':8500'); const doRequest = require('./promise_request').doRequest; -- cgit 1.2.3-korg