Merge "remove unused parameter in rpc call"

This commit is contained in:
Jenkins 2017-04-18 00:36:24 +00:00 committed by Gerrit Code Review
commit 7d46b70894
2 changed files with 3 additions and 5 deletions

View File

@ -328,8 +328,7 @@ class CellsAPI(object):
return cctxt.call(ctxt, 'proxy_rpc_to_manager',
topic=topic,
rpc_message=rpc_message,
call=call,
timeout=timeout)
call=call)
def task_log_get_all(self, ctxt, task_name, period_beginning,
period_ending, host=None, state=None):

View File

@ -317,11 +317,10 @@ class CellsAPITestCase(test.NoDBTestCase):
call_info = self._stub_rpc_method('call', 'fake_response')
result = self.cells_rpcapi.proxy_rpc_to_manager(
self.fake_context, rpc_message='fake-msg',
topic='fake-topic', call=True, timeout=-1)
topic='fake-topic', call=True)
expected_args = {'rpc_message': 'fake-msg',
'topic': 'fake-topic',
'call': True,
'timeout': -1}
'call': True}
self._check_result(call_info, 'proxy_rpc_to_manager',
expected_args,
version='1.2')