summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTrey Morris <treyemorris@gmail.com>2012-12-18 04:06:42 -0600
committerTrey Morris <treyemorris@gmail.com>2012-12-18 13:40:18 -0600
commitbeaa53805b67893c2fd7bbed81ea5cfe20354001 (patch)
tree685b8263be112c8d266e46cff6ce9ef781128174
parent0e4076ebbd0d25e5164c180e8983a36a6bdd9cb5 (diff)
downloadnova-beaa53805b67893c2fd7bbed81ea5cfe20354001.tar.gz
nova-beaa53805b67893c2fd7bbed81ea5cfe20354001.tar.xz
nova-beaa53805b67893c2fd7bbed81ea5cfe20354001.zip
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
-rw-r--r--nova/network/api.py2
1 files changed, 1 insertions, 1 deletions
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)