Example #1
0
def validate_check_flags(val):
    """Validate check influencing flags."""
    try:
        flags = Flags(val)
    except ParseException as error:
        raise ValidationError(_("Failed to parse flags: %s") % error)
    flags.validate()
Example #2
0
def validate_check_flags(val):
    """Validate check influencing flags."""
    flags = Flags(val)
    flags.validate()