'Update capabilities for a cell.'

@sync_before
def update_cell_capabilities(self, cell_name, capabilities):

    cell = (self.child_cells.get(cell_name) or self.parent_cells.get(cell_name))
    if (not cell):
        LOG.error("Unknown    cell    '%(cell_name)s'    when    trying    to    update    capabilities", {'cell_name': cell_name})
        return
    for (capab_name, values) in capabilities.items():
        capabilities[capab_name] = set(values)
    cell.update_capabilities(capabilities)
