Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 2 additions & 6 deletions lium/sdk/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -1120,10 +1120,8 @@ def backup_config(self, pod: PodInfo) -> Optional[BackupConfig]:
Returns:
:class:`BackupConfig` if present, otherwise ``None``.
"""
if not pod.executor:
raise ValueError(f"Pod {pod.name} has no executor information")
try:
response = self._request("GET", f"/backup-configs/pod/{pod.executor.id}").json()
response = self._request("GET", f"/backup-configs/pod/{pod.id}").json()
return self._dict_to_backup_config(response) if response else None
except LiumNotFoundError:
# No backup config exists for this pod
Expand All @@ -1147,11 +1145,9 @@ def backup_logs(self, pod: PodInfo) -> List[BackupLog]:
Returns:
List of :class:`BackupLog` entries (possibly empty).
"""
if not pod.executor:
raise ValueError(f"Pod {pod.name} has no executor information")

try:
response = self._request("GET", f"/backup-logs/pod/{pod.executor.id}").json()
response = self._request("GET", f"/backup-logs/pod/{pod.id}").json()

# Handle paginated response - extract items from the response
if isinstance(response, dict) and 'items' in response:
Expand Down