6 Replies Latest reply on Jan 6, 2016 6:09 AM by Yanick Girouard

    blcli PatchingJob getDBKeyByGroupAndName returns incorrect error when no job is found

    Yanick Girouard

      Not sure how important this defect would be, but if you try to use the PatchingJob getDBKeyByGroupAndName command and the job name you're looking for doesn't exist, it gives the following error:


      Command execution failed. com.bladelogic.om.infra.mfw.util.NotFoundException: No job found with name : JOB_NAME_HERE group : GROUP_ID_HERE and type : REDHAT_PATCHING_JOB

      The issue is that it always says it can't find a REDHAT_PATCHING_JOB type even though you were looking for another type. Since there's no type number passed in arguments to the command, I assume it basically tries them all and prints the last type it tried, but this is misleading to someone who doesn't understand why it would be doing this.