Skip to content

Commit

Permalink
add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
alexandredevely committed Sep 27, 2023
1 parent 74646d0 commit 06e5995
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion oc/od/composer.py
Original file line number Diff line number Diff line change
Expand Up @@ -872,8 +872,10 @@ def notify_endpoint( url ):


def notify_endpoints(pyos_endpoint_uri, pyos_endpoint_port, pyos_endpoint_addresses):
# if pyos is not running inside kubernetes pod
if oc.od.settings.developer_instance is True:
pyos_endpoint_addresses = [ 'localhost' ]
# overwrite pyos_endpoint_addresses value
pyos_endpoint_addresses = [ 'localhost' ]
for pyos_endpoint_address in pyos_endpoint_addresses:
url = f"http://{pyos_endpoint_address}:{pyos_endpoint_port}{pyos_endpoint_uri}"
notify_thread = threading.Thread(target=notify_endpoint, kwargs={'url': url } )
Expand Down

0 comments on commit 06e5995

Please sign in to comment.