예제 #1
0
def valid_cert_fields(arg):
    """Make sure only valid cert field names are allowed"""
    valid_job_id(arg, extra_chars=',')
    if [i for i in arg.split(',') if not i in cert_field_names]:
        invalid_argument(arg)
예제 #2
0
def valid_mode_name(arg):
    """Make sure only valid mode names are allowed"""
    valid_job_id(arg)