Skip to content

Commit

Permalink
fix undersync url
Browse files Browse the repository at this point in the history
  • Loading branch information
Milan Fencik committed Nov 21, 2024
1 parent ad02d21 commit 237e5ae
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions python/neutron-understack/neutron_understack/undersync.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,12 @@ class Undersync:
def __init__(
self,
auth_token: str | None = None,
api_url="http://undersync-service.undersync.svc.cluster.local:8080",
api_url: str | None = None,
) -> None:
"""Simple client for Undersync."""
self.token = auth_token or self.fetch_undersync_token()
self.api_url = api_url
self.url = "http://undersync-service.undersync.svc.cluster.local:8080"
self.api_url = api_url or self.url

def fetch_undersync_token(self):
file = pathlib.Path("/etc/undersync/token")
Expand Down

0 comments on commit 237e5ae

Please sign in to comment.