Merge "Remove return from rpc cast"
This commit is contained in:
commit
4bead404fe
@ -1503,7 +1503,7 @@ class ComputeAPI(object):
|
||||
client = self.router.client(ctxt)
|
||||
cctxt = client.prepare(server=_compute_host(None, instance),
|
||||
version=version)
|
||||
return cctxt.cast(ctxt, "trigger_crash_dump", instance=instance)
|
||||
cctxt.cast(ctxt, "trigger_crash_dump", instance=instance)
|
||||
|
||||
def cache_images(self, ctxt, host, image_ids):
|
||||
version = self._ver(ctxt, '5.4')
|
||||
|
@ -473,4 +473,4 @@ class ComputeTaskAPI(object):
|
||||
raise exception.ServiceTooOld(_('nova-conductor too old'))
|
||||
kw = {'instance': instance, 'migration': migration}
|
||||
cctxt = self.client.prepare(version=version)
|
||||
return cctxt.cast(ctxt, 'revert_snapshot_based_resize', **kw)
|
||||
cctxt.cast(ctxt, 'revert_snapshot_based_resize', **kw)
|
||||
|
@ -171,15 +171,15 @@ class SchedulerAPI(object):
|
||||
|
||||
def update_instance_info(self, ctxt, host_name, instance_info):
|
||||
cctxt = self.client.prepare(version='4.2', fanout=True)
|
||||
return cctxt.cast(ctxt, 'update_instance_info', host_name=host_name,
|
||||
instance_info=instance_info)
|
||||
cctxt.cast(ctxt, 'update_instance_info', host_name=host_name,
|
||||
instance_info=instance_info)
|
||||
|
||||
def delete_instance_info(self, ctxt, host_name, instance_uuid):
|
||||
cctxt = self.client.prepare(version='4.2', fanout=True)
|
||||
return cctxt.cast(ctxt, 'delete_instance_info', host_name=host_name,
|
||||
instance_uuid=instance_uuid)
|
||||
cctxt.cast(ctxt, 'delete_instance_info', host_name=host_name,
|
||||
instance_uuid=instance_uuid)
|
||||
|
||||
def sync_instance_info(self, ctxt, host_name, instance_uuids):
|
||||
cctxt = self.client.prepare(version='4.2', fanout=True)
|
||||
return cctxt.cast(ctxt, 'sync_instance_info', host_name=host_name,
|
||||
instance_uuids=instance_uuids)
|
||||
cctxt.cast(ctxt, 'sync_instance_info', host_name=host_name,
|
||||
instance_uuids=instance_uuids)
|
||||
|
Loading…
Reference in New Issue
Block a user