From fd44e9bdc0669e9d98a381889397bb3f61e65517 Mon Sep 17 00:00:00 2001 From: Russell Bryant Date: Tue, 23 Oct 2012 17:56:38 -0400 Subject: Remove useless return. self.cast() doesn't return anything, so remove a couple useless uses of return in the network rpcapi. Change-Id: I9981fa97870c90c98994e3201c85c125b5cea3e2 --- nova/network/rpcapi.py | 10 ++++------ 1 file 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): -- cgit