From beaa53805b67893c2fd7bbed81ea5cfe20354001 Mon Sep 17 00:00:00 2001 From: Trey Morris Date: Tue, 18 Dec 2012 04:06:42 -0600 Subject: network/api add_fixed_ip correctly passes uuid network/api.py add_fixed_ip_to_instance() was passing the instance id instead of the uuid. fixes bug 1091598 Change-Id: If2bc8de35793e6574da236bc1189ed5d60b30529 --- nova/network/api.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nova/network/api.py b/nova/network/api.py index beee802c1..b177c60ba 100644 --- a/nova/network/api.py +++ b/nova/network/api.py @@ -215,7 +215,7 @@ class API(base.Base): @refresh_cache def add_fixed_ip_to_instance(self, context, instance, network_id): """Adds a fixed ip to instance from specified network.""" - args = {'instance_id': instance['id'], + args = {'instance_id': instance['uuid'], 'host': instance['host'], 'network_id': network_id} self.network_rpcapi.add_fixed_ip_to_instance(context, **args) -- cgit