'Create an Anti Affinity Policy using the CLC API.
:param p: datacenter to create policy in
:return: response dictionary from the CLC API.'

def _create_policy(self, p):

    try:
        return self.clc.v2.AntiAffinity.Create(name=p['name'], location=p['location'])
    except CLCException as ex:
        self.module.fail_json(msg='Failed    to    create    anti    affinity    policy    :    {0}.    {1}'.format(p['name'], ex.response_text))
