hypervisor: stopSandbox is StopVM

Renaming. There is no Sandbox specific logic except tracing.

Signed-off-by: Manohar Castelino <mcastelino@apple.com>
This commit is contained in:
Manohar Castelino
2021-09-20 16:22:48 -07:00
committed by Eric Ernst
parent f989078cd2
commit a6385c8fde
10 changed files with 20 additions and 20 deletions

View File

@@ -1181,7 +1181,7 @@ func (s *Sandbox) startVM(ctx context.Context) (err error) {
defer func() {
if err != nil {
s.hypervisor.stopSandbox(ctx, false)
s.hypervisor.StopVM(ctx, false)
}
}()
@@ -1264,7 +1264,7 @@ func (s *Sandbox) stopVM(ctx context.Context) error {
s.Logger().Info("Stopping VM")
return s.hypervisor.stopSandbox(ctx, s.disableVMShutdown)
return s.hypervisor.StopVM(ctx, s.disableVMShutdown)
}
func (s *Sandbox) addContainer(c *Container) error {