diff options
author | Hansen, Tony (th1395) <th1395@att.com> | 2020-05-13 18:55:54 +0000 |
---|---|---|
committer | Hansen, Tony (th1395) <th1395@att.com> | 2020-06-02 20:36:06 +0000 |
commit | 7e1efe3174336fa09a56c596af55ba93d7b14a91 (patch) | |
tree | bad0fc0c5bb0a54f69e7d046008c423c507f87d6 /relationships/relationshipplugin/tasks.py | |
parent | 05e95de3b9736160b4229232903e86706fb782e1 (diff) |
move plugins from from ccsdk to dcaegen2
copy dmaap, helm, pgaas and sshkeyshare plugins from ccsdk to dcaegen2
Change-Id: Ib257495de6c275c45f0c87a4b42ac21a2fab7979
Signed-off-by: Hansen, Tony (th1395) <th1395@att.com>
Issue-ID: DCAEGEN2-2207
Signed-off-by: Hansen, Tony (th1395) <th1395@att.com>
Diffstat (limited to 'relationships/relationshipplugin/tasks.py')
-rw-r--r-- | relationships/relationshipplugin/tasks.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/relationships/relationshipplugin/tasks.py b/relationships/relationshipplugin/tasks.py index b17403c..094c8c7 100644 --- a/relationships/relationshipplugin/tasks.py +++ b/relationships/relationshipplugin/tasks.py @@ -1,7 +1,7 @@ # ============LICENSE_START======================================================= # org.onap.dcae # ================================================================================ -# Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. +# Copyright (c) 2017-2020 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. @@ -16,7 +16,6 @@ # limitations under the License. # ============LICENSE_END========================================================= # -# ECOMP is a trademark and service mark of AT&T Intellectual Property. import json from cloudify import ctx @@ -107,7 +106,7 @@ def registered_to(**kwargs): #Storing in source because that's who is getting registered ctx.source.instance.runtime_properties[CONSUL_HOST] = "http://{0}:{1}".format(consul_host, consul_port) ctx.source.instance.runtime_properties["name_to_register"] = name #careful! delete does not have access to inputs - + try: response = requests.put(url = "{0}/v1/agent/service/register".format(ctx.source.instance.runtime_properties[CONSUL_HOST]), json = { |