We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 948c16f commit 62697f3Copy full SHA for 62697f3
internal/uvm/create.go
@@ -323,8 +323,8 @@ func (uvm *UtilityVM) CloseCtx(ctx context.Context) (err error) {
323
_ = uvm.WaitCtx(ctx)
324
}
325
326
- if uvm.HasConfidentialPolicy() && uvm.createOpts.(*OptionsLCOW).GuestStateFile != "" {
327
- vmgsFullPath := filepath.Join(uvm.createOpts.(*OptionsLCOW).BundleDirectory, uvm.createOpts.(*OptionsLCOW).GuestStateFile)
+ if lopts, ok := uvm.createOpts.(*OptionsLCOW); ok && uvm.HasConfidentialPolicy() && lopts.GuestStateFile != "" {
+ vmgsFullPath := filepath.Join(lopts.BundleDirectory, lopts.GuestStateFile)
328
e := log.G(ctx).WithField("VMGS file", vmgsFullPath)
329
e.Debug("removing VMGS file")
330
if err := os.Remove(vmgsFullPath); err != nil {
0 commit comments