diff --git a/shim/runtime/v2/rune/v2/service.go b/shim/runtime/v2/rune/v2/service.go index cd2bde92d733ccac97f03973b15753801e3697a5..261496a0802e6fe751c4dee5163c97ffbb210807 100644 --- a/shim/runtime/v2/rune/v2/service.go +++ b/shim/runtime/v2/rune/v2/service.go @@ -367,20 +367,11 @@ func (s *service) Create(ctx context.Context, r *taskAPI.CreateTaskRequest) (_ * v, err := typeurl.UnmarshalAny(r.Options) if err != nil { logrus.Errorf("Get rune options error: %v", err) - } - if err != nil { return nil, err } opts = *v.(*options.Options) } - //result := make(chan bool, 1) - // start remote attestation - if opts.BinaryName == constants.RuneOCIRuntime { - logrus.Infof("Attestation Start") - //go attestation.Attestation_main(ctx, result) - } - ns, err := namespaces.NamespaceRequired(ctx) if err != nil { return nil, err @@ -417,15 +408,6 @@ func (s *service) Create(ctx context.Context, r *taskAPI.CreateTaskRequest) (_ * logrus.Infof("TaskCreate sent: %s %d", r.ID, container.Pid()) - if opts.BinaryName == constants.RuneOCIRuntime { - //// judge remote attestation result - //switch <-result { - //case true: - // log.G(ctx).Infof("Attestation Success!") - //case false: - // log.G(ctx).Infof("Attestation Failed!") - //} - } logrus.Debugf("Create: total time cost: %d", (time.Now().Sub(timeStart))/time.Second) logrus.Debugf("Create: total time cost: %d", (time.Now().Sub(ts))/time.Second) return &taskAPI.CreateTaskResponse{