def core(module):
    wished_ip = {'organization': module.params['organization'], 'reverse': module.params['reverse'], 'id': module.params['id'], 'server': module.params['server']}
    region = module.params['region']
    module.params['api_url'] = SCALEWAY_LOCATION[region]['api_endpoint']
    api = Scaleway(module=module)
    if (module.params['state'] == 'absent'):
        (changed, summary) = absent_strategy(api=api, wished_ip=wished_ip)
    else:
        (changed, summary) = present_strategy(api=api, wished_ip=wished_ip)
    module.exit_json(changed=changed, scaleway_ip=summary)
def core(module):
    wished_ip = {'organization': module.params['organization'], 'reverse': module.params['reverse'], 'id': module.params['id'], 'server': module.params['server']}
    region = module.params['region']
    module.params['api_url'] = SCALEWAY_LOCATION[region]['api_endpoint']
    api = Scaleway(module=module)
    if (module.params['state'] == 'absent'):
        (changed, summary) = absent_strategy(api=api, wished_ip=wished_ip)
    else:
        (changed, summary) = present_strategy(api=api, wished_ip=wished_ip)
    module.exit_json(changed=changed, scaleway_ip=summary)