~soren/nova/lp658257

« back to all changes in this revision

Viewing changes to nova/db/api.py

  • Committer: Tarmac
  • Author(s): Michael Gundlach
  • Date: 2010-10-05 18:58:37 UTC
  • mfrom: (295.1.22 servers_api)
  • Revision ID: hudson@openstack.org-20101005185837-wb2sq7zy5swxa9q7
Replace model.Instance.ec2_id with an integer internal_id so that both APIs can represent the ID to external users.

Show diffs side-by-side

added added

removed removed

Lines of Context:
280
280
    return IMPL.instance_get_floating_address(context, instance_id)
281
281
 
282
282
 
283
 
def instance_get_by_ec2_id(context, ec2_id):
 
283
def instance_get_by_internal_id(context, internal_id):
284
284
    """Get an instance by ec2 id."""
285
 
    return IMPL.instance_get_by_ec2_id(context, ec2_id)
 
285
    return IMPL.instance_get_by_internal_id(context, internal_id)
286
286
 
287
287
 
288
288
def instance_is_vpn(context, instance_id):