Skip to content

Commit 7824471

Browse files
committed
Remove return from rpc cast
This change removes return statement from rpc cast method calls. As rpc cast are asynchronous, so doesn't return anything. Change-Id: I766f64f2c086dd652bc28b338320cc94ccc48f1f
1 parent 45c0a38 commit 7824471

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

nova/compute/rpcapi.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1503,7 +1503,7 @@ def trigger_crash_dump(self, ctxt, instance):
15031503
client = self.router.client(ctxt)
15041504
cctxt = client.prepare(server=_compute_host(None, instance),
15051505
version=version)
1506-
return cctxt.cast(ctxt, "trigger_crash_dump", instance=instance)
1506+
cctxt.cast(ctxt, "trigger_crash_dump", instance=instance)
15071507

15081508
def cache_images(self, ctxt, host, image_ids):
15091509
version = self._ver(ctxt, '5.4')

nova/conductor/rpcapi.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -473,4 +473,4 @@ def revert_snapshot_based_resize(self, ctxt, instance, migration):
473473
raise exception.ServiceTooOld(_('nova-conductor too old'))
474474
kw = {'instance': instance, 'migration': migration}
475475
cctxt = self.client.prepare(version=version)
476-
return cctxt.cast(ctxt, 'revert_snapshot_based_resize', **kw)
476+
cctxt.cast(ctxt, 'revert_snapshot_based_resize', **kw)

nova/scheduler/rpcapi.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -171,15 +171,15 @@ def delete_aggregate(self, ctxt, aggregate):
171171

172172
def update_instance_info(self, ctxt, host_name, instance_info):
173173
cctxt = self.client.prepare(version='4.2', fanout=True)
174-
return cctxt.cast(ctxt, 'update_instance_info', host_name=host_name,
175-
instance_info=instance_info)
174+
cctxt.cast(ctxt, 'update_instance_info', host_name=host_name,
175+
instance_info=instance_info)
176176

177177
def delete_instance_info(self, ctxt, host_name, instance_uuid):
178178
cctxt = self.client.prepare(version='4.2', fanout=True)
179-
return cctxt.cast(ctxt, 'delete_instance_info', host_name=host_name,
180-
instance_uuid=instance_uuid)
179+
cctxt.cast(ctxt, 'delete_instance_info', host_name=host_name,
180+
instance_uuid=instance_uuid)
181181

182182
def sync_instance_info(self, ctxt, host_name, instance_uuids):
183183
cctxt = self.client.prepare(version='4.2', fanout=True)
184-
return cctxt.cast(ctxt, 'sync_instance_info', host_name=host_name,
185-
instance_uuids=instance_uuids)
184+
cctxt.cast(ctxt, 'sync_instance_info', host_name=host_name,
185+
instance_uuids=instance_uuids)

0 commit comments

Comments
 (0)