summaryrefslogtreecommitdiffstats
path: root/dcae-cli/dcae_cli/util/run.py
diff options
context:
space:
mode:
authorLusheng Ji <lji@research.att.com>2018-03-11 00:51:35 +0000
committerGerrit Code Review <gerrit@onap.org>2018-03-11 00:51:35 +0000
commitf9242fb6fd592a14b09761dfb58fb7f7e7c56607 (patch)
tree80add99f51d10c0d18ee3aa1d01eeeb8d75f5402 /dcae-cli/dcae_cli/util/run.py
parented0e21efa55bce913ccfb9ab6c20333f7fba7605 (diff)
parentb11dae55f54720759431107e83f1070c10aacd96 (diff)
Merge "Make tox work in a fresh scenario"
Diffstat (limited to 'dcae-cli/dcae_cli/util/run.py')
-rw-r--r--dcae-cli/dcae_cli/util/run.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/dcae-cli/dcae_cli/util/run.py b/dcae-cli/dcae_cli/util/run.py
index e483d04..f0f1309 100644
--- a/dcae-cli/dcae_cli/util/run.py
+++ b/dcae-cli/dcae_cli/util/run.py
@@ -1,7 +1,7 @@
# ============LICENSE_START=======================================================
# org.onap.dcae
# ================================================================================
-# Copyright (c) 2017 AT&T Intellectual Property. All rights reserved.
+# Copyright (c) 2017-2018 AT&T Intellectual Property. 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.
@@ -183,13 +183,15 @@ def run_component(user, cname, cver, catalog, additional_user, attached, force,
# TODO: Be smarter here but for now wait longer i.e. 5min
max_wait = 300 # 300s == 5min
- if _verify_component(instance_name, max_wait, dis.consul_host):
+ if _verify_component(instance_name, max_wait,
+ dis.default_consul_host()):
log.info("Container is up and healthy")
# This block of code is used to construct the delivery
# urls for data router subscribers and to display it for
# users to help with manually provisioning feeds.
- results = dis.lookup_instance(dis.consul_host, instance_name)
+ results = dis.lookup_instance(dis.default_consul_host(),
+ instance_name)
target_host = dis.parse_instance_lookup(results)
dmaap_map = _update_delivery_urls(spec, target_host, dmaap_map)