~ubuntu-cloud-archive/ubuntu/precise/nova/trunk

« back to all changes in this revision

Viewing changes to nova/compute/instance_types.py

  • Committer: Bazaar Package Importer
  • Author(s): Chuck Short
  • Date: 2011-06-17 13:29:16 UTC
  • mto: (94.1.1 raring-proposed)
  • mto: This revision was merged to the branch mainline in revision 27.
  • Revision ID: james.westby@ubuntu.com-20110617132916-u3vv6rxmtvnfn4cj
Tags: upstream-2011.3~d2~20110617.1191
ImportĀ upstreamĀ versionĀ 2011.3~d2~20110617.1191

Show diffs side-by-side

added added

removed removed

Lines of Context:
114
114
        ctxt = context.get_admin_context()
115
115
        return db.instance_type_get_by_id(ctxt, id)
116
116
    except exception.DBError:
117
 
        raise exception.ApiError(_("Unknown instance type: %s") % name)
 
117
        raise exception.ApiError(_("Unknown instance type: %s") % id)
118
118
 
119
119
 
120
120
def get_instance_type_by_name(name):