diff --git a/pkg/frontend/nvme_subsystem.go b/pkg/frontend/nvme_subsystem.go index b693c7f..ee663f6 100644 --- a/pkg/frontend/nvme_subsystem.go +++ b/pkg/frontend/nvme_subsystem.go @@ -59,12 +59,12 @@ func (s *Server) CreateNvmeSubsystem(_ context.Context, in *pb.CreateNvmeSubsyst return subsys, nil } // check if another object exists with same NQN, it is not allowed - for _, item := range s.Subsystems { - if in.NvmeSubsystem.Spec.Nqn == item.Spec.Nqn { - msg := fmt.Sprintf("Could not create NQN: %s since object %s with same NQN already exists", in.NvmeSubsystem.Spec.Nqn, item.Name) - return nil, status.Errorf(codes.AlreadyExists, msg) - } - } + // for _, item := range s.Subsystems { + // if in.NvmeSubsystem.Spec.Nqn == item.Spec.Nqn { + // msg := fmt.Sprintf("Could not create NQN: %s since object %s with same NQN already exists", in.NvmeSubsystem.Spec.Nqn, item.Name) + // return nil, status.Errorf(codes.AlreadyExists, msg) + // } + // } // not found, so create a new one params := models.NvdaSubsystemNvmeCreateParams{ Nqn: in.NvmeSubsystem.Spec.Nqn,