Skip to content

Commit

Permalink
Backup api_server_url if not set in cluster config.
Browse files Browse the repository at this point in the history
  • Loading branch information
rohinb2 committed Jun 24, 2024
1 parent e04e8f1 commit a3bf388
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion runhouse/servers/http/auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def lookup_access_level(
else:
resource_uri_to_send = resource_uri.replace("/", ":")

uri = f"{self.cluster_config.get('api_server_url')}/resource/{resource_uri_to_send}"
uri = f"{self.cluster_config.get('api_server_url', rns_client.api_server_url)}/resource/{resource_uri_to_send}"
resp = rns_client.session.get(
uri,
headers={"Authorization": f"Bearer {token}"},
Expand Down

0 comments on commit a3bf388

Please sign in to comment.