def is_valid_percentage(name, percentage, **kwargs):
    if 0 <= percentage <= 100:
        return True
    logging.debug('%s invalid percentage %s', name, percentage)
Valid the percentage.
dataset/ETHPy150Open openstack/compass-core/compass/db/validator.py/is_valid_percentage