'Validate that name is the correct length if provided, fail if it\'s not
:param module: the module to validate
:return: none'

@staticmethod
def _validate_name(module):

    server_name = module.params.get('name')
    state = module.params.get('state')
    if ((state == 'present') and ((len(server_name) < 1) or (len(server_name) > 6))):
        module.fail_json(msg=str("When    state    =    'present',    name    must    be    a    string    with    a    minimum    length    of    1    and    a    maximum    length    of    6"))
