mirror of
https://github.com/getcompanion-ai/computer-host.git
synced 2026-04-16 18:03:51 +00:00
feat: firecracker mmds identity
This commit is contained in:
parent
500354cd9b
commit
3eb610b703
23 changed files with 1813 additions and 263 deletions
|
|
@ -414,6 +414,8 @@ func publishedPortToContract(record model.PublishedPortRecord) contracthost.Publ
|
|||
func machineToRuntimeState(record model.MachineRecord) firecracker.MachineState {
|
||||
phase := firecracker.PhaseStopped
|
||||
switch record.Phase {
|
||||
case contracthost.MachinePhaseStarting:
|
||||
phase = firecracker.PhaseRunning
|
||||
case contracthost.MachinePhaseRunning:
|
||||
phase = firecracker.PhaseRunning
|
||||
case contracthost.MachinePhaseFailed:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue