~ubuntu-branches/ubuntu/raring/nova/raring-proposed

« back to all changes in this revision

Viewing changes to nova/db/api.py

  • Committer: Package Import Robot
  • Author(s): Adam Gandelman
  • Date: 2013-08-09 10:12:27 UTC
  • mto: This revision was merged to the branch mainline in revision 107.
  • Revision ID: package-import@ubuntu.com-20130809101227-flqfubhwpot76pob
Tags: upstream-2013.1.3
ImportĀ upstreamĀ versionĀ 2013.1.3

Show diffs side-by-side

added added

removed removed

Lines of Context:
727
727
    return IMPL.instance_info_cache_get(context, instance_uuid)
728
728
 
729
729
 
730
 
def instance_info_cache_update(context, instance_uuid, values,
731
 
        update_cells=True):
 
730
def instance_info_cache_update(context, instance_uuid, values):
732
731
    """Update an instance info cache record in the table.
733
732
 
734
733
    :param instance_uuid: = uuid of info cache's instance
735
734
    :param values: = dict containing column values to update
736
735
    """
737
 
    rv = IMPL.instance_info_cache_update(context, instance_uuid, values)
738
 
    if update_cells:
739
 
        try:
740
 
            cells_rpcapi.CellsAPI().instance_info_cache_update_at_top(
741
 
                    context, rv)
742
 
        except Exception:
743
 
            LOG.exception(_("Failed to notify cells of instance info "
744
 
                            "cache update"))
745
 
    return rv
 
736
    return IMPL.instance_info_cache_update(context, instance_uuid, values)
746
737
 
747
738
 
748
739
def instance_info_cache_delete(context, instance_uuid):
1292
1283
    return IMPL.instance_type_get_by_name(context, name)
1293
1284
 
1294
1285
 
1295
 
def instance_type_get_by_flavor_id(context, id):
 
1286
def instance_type_get_by_flavor_id(context, id, read_deleted=None):
1296
1287
    """Get instance type by flavor id."""
1297
 
    return IMPL.instance_type_get_by_flavor_id(context, id)
 
1288
    return IMPL.instance_type_get_by_flavor_id(context, id, read_deleted)
1298
1289
 
1299
1290
 
1300
1291
def instance_type_destroy(context, name):