Skip to content

Commit

Permalink
hardcode "federation"
Browse files Browse the repository at this point in the history
  • Loading branch information
daisieh committed Oct 18, 2024
1 parent e5b16a6 commit fbb13ea
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions candig_federation/network.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@


TYK_FEDERATION_API_ID = os.getenv("TYK_FEDERATION_API_ID")
TYK_LISTEN_PATH = os.getenv("TYK_LISTEN_PATH", "federation")
APPROLE_TOKEN = None
if os.getenv("TESTING", False):
APPROLE_TOKEN = "test"
Expand All @@ -33,8 +32,8 @@ def get_registered_servers():
def register_server(obj):
servers = get_registered_servers()
new_server = obj['server']
if not new_server['url'].endswith(TYK_LISTEN_PATH):
new_server['url'] = new_server['url'] + '/' + TYK_LISTEN_PATH
if not new_server['url'].endswith("/federation"):
new_server['url'] = new_server['url'] + "/federation"

if servers is not None:
# check to see if it's already here:
Expand Down

0 comments on commit fbb13ea

Please sign in to comment.