Skip to content
This repository has been archived by the owner on May 12, 2021. It is now read-only.

Commit

Permalink
virtcontainers: Make fc.go fit the new API
Browse files Browse the repository at this point in the history
Make fc.go fit the new API

Signed-off-by: Sebastien Boeuf <[email protected]>
  • Loading branch information
Sebastien Boeuf authored and Julio Montes committed Sep 19, 2019
1 parent 67ce728 commit 2a8af23
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions virtcontainers/fc.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 2a8af23

Please sign in to comment.