summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2012-06-27 21:22:58 +0000
committerGerrit Code Review <review@openstack.org>2012-06-27 21:22:58 +0000
commit7e658bd45db6c14b4cd7e3a976caf769873d4ca1 (patch)
tree37453345185f9407975b0679e3829df1be1f136f
parentc62ce3f98f2c40bd82b9b5b2cec03f3d15ad4766 (diff)
parentc689891226baa8877f6fb7b3c468b06972068847 (diff)
downloadnova-7e658bd45db6c14b4cd7e3a976caf769873d4ca1.tar.gz
nova-7e658bd45db6c14b4cd7e3a976caf769873d4ca1.tar.xz
nova-7e658bd45db6c14b4cd7e3a976caf769873d4ca1.zip
Merge "Avoid casts in network manager to prevent races"
-rw-r--r--nova/network/manager.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/nova/network/manager.py b/nova/network/manager.py
index fb37499e4..2fc75eec1 100644
--- a/nova/network/manager.py
+++ b/nova/network/manager.py
@@ -230,7 +230,7 @@ class RPCAllocateFixedIP(object):
def deallocate_fixed_ip(self, context, address, host, **kwargs):
"""Call the superclass deallocate_fixed_ip if i'm the correct host
- otherwise cast to the correct host"""
+ otherwise call to the correct host"""
fixed_ip = self.db.fixed_ip_get_by_address(context, address)
network = self._get_network_by_id(context, fixed_ip['network_id'])
@@ -243,7 +243,7 @@ class RPCAllocateFixedIP(object):
topic = rpc.queue_get_for(context, FLAGS.network_topic, host)
args = {'address': address,
'host': host}
- rpc.cast(context, topic,
+ rpc.call(context, topic,
{'method': 'deallocate_fixed_ip',
'args': args})
else: