Set the default instance
(self, instance_id: str)
| 376 | return None |
| 377 | |
| 378 | def set_default(self, instance_id: str) -> bool: |
| 379 | """Set the default instance""" |
| 380 | if instance_id not in self._instances: |
| 381 | return False |
| 382 | self._default_instance_id = instance_id |
| 383 | logger.info(f"Set default instance: {instance_id}") |
| 384 | return True |
| 385 | |
| 386 | def update_status(self, instance_id: str, status: InstanceStatus, detail: str | None = None) -> bool: |
| 387 | """Update instance status""" |