def instance_update(context, instance_uuid, values, update_cells=True):
 rv = IMPL.instance_update(context, instance_uuid, values)
 if update_cells:
  try:
   cells_rpcapi.CellsAPI().instance_update_at_top(context, rv)
  except Exception:
   LOG.exception(_('Failed to notify cells of instance update'))
 return rv

def instance_update ( context , instance_uuid , values , update_cells = True ) : rv = IMPL . instance_update ( context , instance_uuid , values ) if update_cells : try : cells_rpcapi . CellsAPI ( ) . instance_update_at_top ( context , rv ) except Exception : LOG . exception ( _ ( 'Failed to notify cells of instance update' ) ) return rv
set the given properties on an instance and update it .