def createComputeQual(inUcsmHost, computeQualStr):
        """Configures Server Qualification policy in UCS Manager."""
        logging.debug('create compute qual')
        computeQualList = ast.literal_eval(computeQualStr)

        pDn = "org-root" # is this added under org-root always?
        computeQualDn = pDn + "/blade-qualifier-" + computeQualList[ComputeQual.NAME]
        computeQualStr = {ComputeQual.NAME: computeQualList[ComputeQual.NAME]}

        # Create compute-qualifier
        addObjectToUcs(inUcsmHost, pDn, OrgOrg.ClassId(), ComputeQual.ClassId(), computeQualStr, computeQualDn)

        computeChassisQualStr = {ComputeChassisQual.MIN_ID: computeQualList[ComputeChassisQual.MIN_ID], \
                                 ComputeChassisQual.MAX_ID: computeQualList[ComputeChassisQual.MAX_ID]}
        computeChassisQualDn = computeQualDn + "/chassis-from-" + computeQualList[ComputeChassisQual.MIN_ID] + "-to-" + computeQualList[ComputeChassisQual.MAX_ID]

        # Add Chassis Qualifier
        addObjectToUcs(inUcsmHost, computeQualDn, ComputeQual.ClassId(), ComputeChassisQual.ClassId(), computeChassisQualStr, computeChassisQualDn)
        logging.debug("computeQualDn"+computeQualDn)
        i = int(computeQualList[ComputeChassisQual.MIN_ID])
        while (int(computeQualList[ComputeChassisQual.MAX_ID])) <= i:
                computeSlotQualDn = computeChassisQualDn + "/slot-from-" + computeQualList["SlotMinId"] + "-to-" + computeQualList["SlotMaxId"]
                computeSlotQualList = {ComputeSlotQual.MIN_ID: computeQualList["SlotMinId"], \
                                        ComputeSlotQual.MAX_ID: computeQualList["SlotMaxId"]}
                logging.debug("computeQual:" + computeChassisQualDn)
                addObjectToUcs(inUcsmHost, computeChassisQualDn, ComputeChassisQual.ClassId(), ComputeSlotQual.ClassId(), computeSlotQualList, computeSlotQualDn)
		i += 1
        pass
dataset/ETHPy150Open Havate/havate-openstack/proto-build/gui/horizon/Horizon_GUI/openstack_dashboard/static-raw/scripts/UcsUtils.py/createComputeQual/swapped operands of `<=`