diff options
| author | Russell Bryant <rbryant@redhat.com> | 2012-10-23 17:56:38 -0400 |
|---|---|---|
| committer | Russell Bryant <rbryant@redhat.com> | 2012-10-26 16:53:39 -0400 |
| commit | fd44e9bdc0669e9d98a381889397bb3f61e65517 (patch) | |
| tree | e874c476c393319ed88ce683e70a53dcaaac0f34 | |
| parent | 33825bea5bccab26542e0db649932ba8da3de27f (diff) | |
Remove useless return.
self.cast() doesn't return anything, so remove a couple useless uses of
return in the network rpcapi.
Change-Id: I9981fa97870c90c98994e3201c85c125b5cea3e2
| -rw-r--r-- | nova/network/rpcapi.py | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/nova/network/rpcapi.py b/nova/network/rpcapi.py index 66b20a899..4d401efdb 100644 --- a/nova/network/rpcapi.py +++ b/nova/network/rpcapi.py @@ -257,14 +257,12 @@ class NetworkAPI(rpc_proxy.RpcProxy): topic=rpc.queue_get_for(ctxt, self.topic, host)) def lease_fixed_ip(self, ctxt, address, host): - return self.cast(ctxt, self.make_msg('lease_fixed_ip', - address=address), - topic=rpc.queue_get_for(ctxt, self.topic, host)) + self.cast(ctxt, self.make_msg('lease_fixed_ip', address=address), + topic=rpc.queue_get_for(ctxt, self.topic, host)) def release_fixed_ip(self, ctxt, address, host): - return self.cast(ctxt, self.make_msg('release_fixed_ip', - address=address), - topic=rpc.queue_get_for(ctxt, self.topic, host)) + self.cast(ctxt, self.make_msg('release_fixed_ip', address=address), + topic=rpc.queue_get_for(ctxt, self.topic, host)) def migrate_instance_start(self, ctxt, instance_uuid, floating_addresses, host): |
