Skip to content

Commit

Permalink
Merge branch 'feature/GROW-105-zenml-login' of github.com:zenml-io/ze…
Browse files Browse the repository at this point in the history
…nml into feature/GROW-105-zenml-login
  • Loading branch information
stefannica committed Oct 25, 2024
2 parents ef23b8d + e411cb7 commit 6c9bfe0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/zenml/login/credentials.py
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ def is_available(self) -> bool:
"""Check if the server is available (running and authenticated).
Returns:
bool: True if the server is available, False otherwise.
True if the server is available, False otherwise.
"""
if self.status not in [TenantStatus.AVAILABLE, ServiceState.ACTIVE]:
return False
Expand All @@ -179,7 +179,7 @@ def auth_status(self) -> str:
"""Get the authentication status.
Returns:
str: The authentication status.
The authentication status.
"""
if self.type == ServerType.LOCAL:
return "no authentication required"
Expand All @@ -200,7 +200,7 @@ def expires_at(self) -> str:
"""Get the expiration time of the token as a string.
Returns:
str: The expiration time of the token as a string.
The expiration time of the token as a string.
"""
if not self.api_token:
return "N/A"
Expand All @@ -217,7 +217,7 @@ def expires_in(self) -> str:
"""Get the time remaining until the token expires.
Returns:
str: The time remaining until the token expires.
The time remaining until the token expires.
"""
if not self.api_token:
return "N/A"
Expand Down

0 comments on commit 6c9bfe0

Please sign in to comment.