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

@staticmethod
def _find_cpu(clc, module):

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