summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTony Hansen <tony@att.com>2018-02-23 21:42:31 +0000
committerGerrit Code Review <gerrit@onap.org>2018-02-23 21:42:31 +0000
commitb1fd860018c6c944416ad5ec3ed97377d0c13735 (patch)
treeadff631bf134563fdf9a0620f920f576b06fe72e
parentec244fb888c49beb3a8d24d3fc1b660ff144c4b3 (diff)
parent8b98cdb87ad811c8fb5f0611471140f810728850 (diff)
Merge "fixed dcaegen2-363"
-rw-r--r--docker/dockerplugin/tasks.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/docker/dockerplugin/tasks.py b/docker/dockerplugin/tasks.py
index ff2f2af..899f4ed 100644
--- a/docker/dockerplugin/tasks.py
+++ b/docker/dockerplugin/tasks.py
@@ -451,6 +451,8 @@ def _update_delivery_url(**kwargs):
for dr_sub in dr_subs:
scheme = dr_sub["scheme"] if "scheme" in dr_sub else DEFAULT_SCHEME
+ if "route" not in dr_sub:
+ raise NonRecoverableError("'route' key missing from data router subscriber")
path = dr_sub["route"]
dr_sub["delivery_url"] = "{scheme}://{host}/{path}".format(
scheme=scheme, host=subscriber_host, path=path)