def validate_eviction_policy(namespace):
    'Validates the node pool priority string.'
    if (namespace.eviction_policy is not None):
        if (namespace.eviction_policy == ''):
            return
        if ((namespace.eviction_policy != 'Delete') and (namespace.eviction_policy != 'Deallocate')):
            raise CLIError('--eviction-policy can only be Delete or Deallocate')
Validates the node pool priority string.
def validate_eviction_policy(namespace):
    
    if (namespace.eviction_policy is not None):
        if (namespace.eviction_policy == ):
            return
        if ((namespace.eviction_policy != 'Delete') and (namespace.eviction_policy != 'Deallocate')):
            raise CLIError('--eviction-policy can only be Delete or Deallocate')