From e1a743a7eab1aaa8686873fc94249cefebd90e7c Mon Sep 17 00:00:00 2001 From: Mark Washenberger Date: Wed, 19 Oct 2011 14:12:23 -0400 Subject: Use UUIDs instead of IDs for OSAPI servers. Continues to support both UUIDs and IDs in the compute and db layers, but only exposes UUIDs in the ID fields of OSAPI responses. Technically, old ID-based URIs still work, but you likely can't find them any longer. This only affects servers--images and flavors still use integer IDs. Fixes bug 804093 Change-Id: Iecf25c5402f355dd3f227b87a936fcc1b81371b6 --- nova/compute/api.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'nova/compute') diff --git a/nova/compute/api.py b/nova/compute/api.py index a39d35006..9c7149111 100644 --- a/nova/compute/api.py +++ b/nova/compute/api.py @@ -1481,7 +1481,7 @@ class API(base.Base): self.db.queue_get_for(context, FLAGS.compute_topic, host), {"method": "attach_volume", "args": {"volume_id": volume_id, - "instance_id": instance_id, + "instance_id": instance['id'], "mountpoint": device}}) def detach_volume(self, context, volume_id): -- cgit