def validate_taints(namespace):
    'Validates that provided taint is a valid format'
    regex = re.compile('^[a-zA-Z\\d][\\w\\-\\.\\/]{0,252}=[a-zA-Z\\d][\\w\\-\\.]{0,62}:(NoSchedule|PreferNoSchedule|NoExecute)$')
    if ((namespace.node_taints is not None) and (namespace.node_taints != '')):
        for taint in namespace.node_taints.split(','):
            if (taint == ''):
                continue
            found = regex.findall(taint)
            if (not found):
                raise CLIError(('Invalid node taint: %s' % taint))
Validates that provided taint is a valid format
def validate_taints(namespace):
    
    regex = re.compile('^[a-zA-Z\\d][\\w\\-\\.\\/]{0,252}=[a-zA-Z\\d][\\w\\-\\.]{0,62}:(NoSchedule|PreferNoSchedule|NoExecute)$')
    if ((namespace.node_taints is not None) and (namespace.node_taints != )):
        for taint in namespace.node_taints.split(','):
            if (taint == ):
                continue
            found = regex.findall(taint)
            if (not found):
                raise CLIError(('Invalid node taint: %s' % taint))