'Return name and capabilities for this cell.'

@extensions.expected_errors(501)
@common.check_cells_enabled
def info(self, req):

    context = req.environ['nova.context']
    context.can(cells_policies.BASE_POLICY_NAME)
    cell_capabs = {}
    my_caps = CONF.cells.capabilities
    for cap in my_caps:
        (key, value) = cap.split('=')
        cell_capabs[key] = value
    cell = {'name': CONF.cells.name, 'type': 'self', 'rpc_host': None, 'rpc_port': 0, 'username': None, 'capabilities': cell_capabs}
    return dict(cell=cell)
