'Update an instance object in its cell.'

def instance_update_from_api(self, ctxt, instance, expected_vm_state, expected_task_state, admin_state_reset):

    cell_name = instance.cell_name
    if (not cell_name):
        LOG.warning('No    cell_name    for    instance    update    from    API', instance=instance)
        return
    method_kwargs = {'instance': instance, 'expected_vm_state': expected_vm_state, 'expected_task_state': expected_task_state, 'admin_state_reset': admin_state_reset}
    message = _TargetedMessage(self, ctxt, 'instance_update_from_api', method_kwargs, 'down', cell_name)
    message.process()
