diff options
Diffstat (limited to 'relationships/relationshipplugin')
-rw-r--r-- | relationships/relationshipplugin/__init__.py | 3 | ||||
-rw-r--r-- | relationships/relationshipplugin/discovery.py | 3 | ||||
-rw-r--r-- | relationships/relationshipplugin/tasks.py | 5 |
3 files changed, 4 insertions, 7 deletions
diff --git a/relationships/relationshipplugin/__init__.py b/relationships/relationshipplugin/__init__.py index 259e52c..e342af3 100644 --- a/relationships/relationshipplugin/__init__.py +++ b/relationships/relationshipplugin/__init__.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. from .tasks import add_relationship, remove_relationship, \ diff --git a/relationships/relationshipplugin/discovery.py b/relationships/relationshipplugin/discovery.py index 1b87a65..ec1b576 100644 --- a/relationships/relationshipplugin/discovery.py +++ b/relationships/relationshipplugin/discovery.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. # Copyright (c) 2019 Pantheon.tech. All rights reserved. # ================================================================================ # Licensed under the Apache License, Version 2.0 (the "License"); @@ -17,7 +17,6 @@ # limitations under the License. # ============LICENSE_END========================================================= # -# ECOMP is a trademark and service mark of AT&T Intellectual Property. try: from urllib.parse import urlparse 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 = { |