Skip to content

LREST controller misleading message #219

@mmalvezz

Description

@mmalvezz

lrest controller : Find a misleading message at line 1665

	for _, pdbitem := range lrpdbList.Items {
		if (pdbitem.Spec.CDBName == lrest.Spec.LRESTName) && Bit(pdbitem.Status.PDBBitMask, PDBCRT) == true {
			InTheList := SearchElementInDbList2(pdbitem.Spec.LRPDBName, ndata)
			log.Info("PDB " + pdbitem.Spec.LRPDBName + " has been dropped manually dropping the CRD")  <---- Line 1665 
			if InTheList == false {
				err := r.DeleteCRDPdb(ctx, req, &pdbitem, lrest)
				log.Error(err, "Cannot delete crd ")
			}
		}
	}

Message should be in the inner "if" block.... only if InListVariable is false the CRD will be dropped

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions