mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-06-28 08:17:37 +00:00
virtcontainers: Make fc.go fit the new API
Make fc.go fit the new API Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com>
This commit is contained in:
parent
67ce7283bc
commit
2a8af23de6
@ -742,13 +742,15 @@ func (fc *firecracker) fcAddVsock(vs kataVSOCK) error {
|
||||
vsockParams := ops.NewPutGuestVsockByIDParams()
|
||||
vsockID := "root"
|
||||
ctxID := int64(vs.contextID)
|
||||
udsPath := ""
|
||||
vsock := &models.Vsock{
|
||||
GuestCid: &ctxID,
|
||||
ID: &vsockID,
|
||||
UdsPath: &udsPath,
|
||||
VsockID: &vsockID,
|
||||
}
|
||||
vsockParams.SetID(vsockID)
|
||||
vsockParams.SetBody(vsock)
|
||||
_, _, err := fc.client().Operations.PutGuestVsockByID(vsockParams)
|
||||
_, err := fc.client().Operations.PutGuestVsockByID(vsockParams)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user