summaryrefslogtreecommitdiffstats
path: root/nova/api
diff options
context:
space:
mode:
authorJulien Danjou <julien.danjou@enovance.com>2011-12-12 16:02:36 +0100
committerJulien Danjou <julien.danjou@enovance.com>2011-12-13 10:02:24 +0100
commit9ba6beda437faac138cfea4e0ae21656c08ea394 (patch)
tree8c24e5a524ed42c3e511ff81e9b90d7321e4c44b /nova/api
parentff753cd608973f5d72a80aef0f9fb8a646fccc3f (diff)
downloadnova-9ba6beda437faac138cfea4e0ae21656c08ea394.tar.gz
nova-9ba6beda437faac138cfea4e0ae21656c08ea394.tar.xz
nova-9ba6beda437faac138cfea4e0ae21656c08ea394.zip
floating-ip: return UUID of instance rather than ID
Returning the database ID seems useless now that instances are identified by UUID. So it seems more reasonable to return UUID here too. Change-Id: I36fa6ded284158facb891dd081aa3d3f45c7c5ee Signed-off-by: Julien Danjou <julien.danjou@enovance.com>
Diffstat (limited to 'nova/api')
-rw-r--r--nova/api/openstack/v2/contrib/floating_ips.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/nova/api/openstack/v2/contrib/floating_ips.py b/nova/api/openstack/v2/contrib/floating_ips.py
index 760ed65ab..f6be55e6e 100644
--- a/nova/api/openstack/v2/contrib/floating_ips.py
+++ b/nova/api/openstack/v2/contrib/floating_ips.py
@@ -39,7 +39,7 @@ def _translate_floating_ip_view(floating_ip):
except (TypeError, KeyError):
result['fixed_ip'] = None
try:
- result['instance_id'] = floating_ip['fixed_ip']['instance_id']
+ result['instance_id'] = floating_ip['fixed_ip']['instance']['uuid']
except (TypeError, KeyError):
result['instance_id'] = None
return {'floating_ip': result}