diff --git a/lium/sdk/client.py b/lium/sdk/client.py index d3f1160..0138181 100644 --- a/lium/sdk/client.py +++ b/lium/sdk/client.py @@ -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 @@ -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: