def validate_nodes_count(namespace):
    'Validate that min_count and max_count is set to 1-100'
    if (namespace.min_count is not None):
        if ((namespace.min_count < 1) or (namespace.min_count > 100)):
            raise CLIError('--min-count must be in the range [1,100]')
    if (namespace.max_count is not None):
        if ((namespace.max_count < 1) or (namespace.max_count > 100)):
            raise CLIError('--max-count must be in the range [1,100]')
Validate that min_count and max_count is set to 1-100
def validate_nodes_count(namespace):
    
    if (namespace.min_count is not None):
        if ((namespace.min_count < 1) or (namespace.min_count > 100)):
            raise CLIError('--min-count must be in the range [1,100]')
    if (namespace.max_count is not None):
        if ((namespace.max_count < 1) or (namespace.max_count > 100)):
            raise CLIError('--max-count must be in the range [1,100]')