Skip to content

Commit 4bead40

Browse files
Zuulopenstack-gerrit
authored andcommitted
Merge "Remove return from rpc cast"
2 parents 90c0c68 + 7824471 commit 4bead40

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)