Skip to content

Commit

Permalink
declear variable and define
Browse files Browse the repository at this point in the history
  • Loading branch information
wanyaoqi committed May 28, 2020
1 parent e67aaa0 commit 8fde0c6
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion pkg/hostman/guestman/guesthandlers/guesthandler.go
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,11 @@ func guestRebuild(ctx context.Context, sid string, body jsonutils.JSONObject) (i
}
hostutils.DelayTaskWithWorker(ctx,
guestman.GetGuestManager().GuestDeploy,
&guestman.SGuestDeploy{sid, body, true},
&guestman.SGuestDeploy{
Sid: sid,
Body: body,
IsInit: true,
},
guestman.NbdWorker,
)
return nil, nil
Expand Down

0 comments on commit 8fde0c6

Please sign in to comment.