def _create_project(self, request, data):
    domain_id = data['domain_id']
    try:
        EXTRA_INFO = settings.PROJECT_TABLE_EXTRA_INFO
        kwargs = dict(((key, data.get(key)) for key in EXTRA_INFO))
        desc = data['description']
        self.object = api.keystone.tenant_create(request, name=data['name'], description=desc, enabled=data['enabled'], domain=domain_id, **kwargs)
        return self.object
    except exceptions.Conflict:
        msg = (_('Project name "%s" is already used.') % data['name'])
        self.failure_message = msg
        return
    except Exception:
        exceptions.handle(request, ignore=True)
        return
def _create_project(self, request, data):
    domain_id = data['domain_id']
    try:
        EXTRA_INFO = settings.PROJECT_TABLE_EXTRA_INFO
        kwargs = dict(((key, data.get(key)) for key in EXTRA_INFO))
        desc = data['description']
        self.object = api.keystone.tenant_create(request, name=data['name'], description=desc, enabled=data['enabled'], domain=domain_id, **kwargs)
        return self.object
    except exceptions.Conflict:
        msg = (_('Project name "%s" is already used.') % data['name'])
        self.failure_message = msg
        return
    except Exception:
        exceptions.handle(request, ignore=True)
        return