Return a storage context for the requested SSID/slug without mutating global state.
(target_identifier: Optional[str])
| 3594 | 'already_current': bool(result.get('already_current')), |
| 3595 | 'branch': result.get('branch', ''), |
| 3596 | 'from_commit': (result.get('from_commit') or '')[:8], |
| 3597 | 'to_commit': (result.get('to_commit') or '')[:8], |
| 3598 | 'warnings': result.get('warnings', []), |
| 3599 | 'restart_pending': False, |
| 3600 | } |
| 3601 | if not result.get('ok'): |
| 3602 | compact['error'] = result.get('error') or 'Update failed' |
| 3603 | compact['code'] = result.get('code', '') |
| 3604 | compact['hint'] = result.get('hint', '') |
| 3605 | return compact |
| 3606 | if result.get('already_current'): |
| 3607 | compact['message'] = 'Already up to date.' |
| 3608 | return compact |
no test coverage detected