'Find or validate the Memory value by calling the CLC API
:param clc: clc-sdk instance to use
:param module: module to validate
:return: Int value for Memory'

@staticmethod
def _find_memory(clc, module):

    memory = module.params.get('memory')
    group_id = module.params.get('group_id')
    alias = module.params.get('alias')
    state = module.params.get('state')
    if ((not memory) and (state == 'present')):
        group = clc.v2.Group(id=group_id, alias=alias)
        if group.Defaults('memory'):
            memory = group.Defaults('memory')
        else:
            module.fail_json(msg=str("Can't    determine    a    default    memory    value.    Please    provide    a    value    for    memory."))
    return memory
