def compliance_check_item_value(report_item, compliance_check_item_name):
    """
    Function returns value of given compliance check item e.g. cm:compliance-check-name
    :param report_item: particular report item for scanned host
    :param compliance_check_item_name: exact compliance check item name for scanned host
    :return: value of given compliance check item name
    """
    compliance_check_item_content_value = None
    compliance = report_item.find('compliance')
    if compliance is not None:
        if compliance.text == 'true':
            compliance_check_item_content = report_item.find(
                compliance_check_item_name, namespaces={'cm':
                'http://www.nessus.org/cm'})
            if compliance_check_item_content is not None:
                compliance_check_item_content_value = (
                    compliance_check_item_content.text)
    return compliance_check_item_content_value
