mirror of
https://github.com/getcompanion-ai/computer-host.git
synced 2026-04-15 23:01:32 +00:00
fix: address CI failures and review feedback
This commit is contained in:
parent
15ad7e6632
commit
149bc2985a
4 changed files with 33 additions and 21 deletions
|
|
@ -47,6 +47,7 @@ type Daemon struct {
|
|||
reconfigureGuestIdentity func(context.Context, string, contracthost.MachineID, *contracthost.GuestConfig) error
|
||||
readGuestSSHPublicKey func(context.Context, string) (string, error)
|
||||
syncGuestFilesystem func(context.Context, string) error
|
||||
shutdownGuest func(context.Context, string) error
|
||||
personalizeGuest func(context.Context, *model.MachineRecord, firecracker.MachineState) error
|
||||
|
||||
locksMu sync.Mutex
|
||||
|
|
@ -94,6 +95,7 @@ func New(cfg appconfig.Config, store store.Store, runtime Runtime) (*Daemon, err
|
|||
daemon.reconfigureGuestIdentity = daemon.reconfigureGuestIdentityOverSSH
|
||||
daemon.readGuestSSHPublicKey = readGuestSSHPublicKey
|
||||
daemon.syncGuestFilesystem = daemon.syncGuestFilesystemOverSSH
|
||||
daemon.shutdownGuest = daemon.issueGuestPoweroff
|
||||
daemon.personalizeGuest = daemon.personalizeGuestConfig
|
||||
if err := daemon.ensureBackendSSHKeyPair(); err != nil {
|
||||
return nil, err
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue