浏览代码

Fix transfer execution trigger on cron schedule

Fixes the `shutdown_instances` keyword argument name.
Daniel Vincze 1 年之前
父节点
当前提交
5ebc486928
共有 2 个文件被更改,包括 2 次插入2 次删除
  1. 1 1
      coriolis/tests/transfer_cron/rpc/test_server.py
  2. 1 1
      coriolis/transfer_cron/rpc/server.py

+ 1 - 1
coriolis/tests/transfer_cron/rpc/test_server.py

@@ -31,7 +31,7 @@ class TriggerTransferTestCase(test_base.CoriolisBaseTestCase):
 
         mock_conductor_client.execute_transfer_tasks.assert_called_once_with(
             mock.sentinel.ctxt, mock.sentinel.transfer_id,
-            shutdown_instance=False, auto_deploy=False)
+            shutdown_instances=False, auto_deploy=False)
 
         self.assertEqual(
             result, 'Execution %s for Transfer %s' % (

+ 1 - 1
coriolis/transfer_cron/rpc/server.py

@@ -21,7 +21,7 @@ def _trigger_transfer(ctxt, conductor_client, transfer_id, shutdown_instance,
                       auto_deploy):
     try:
         execution = conductor_client.execute_transfer_tasks(
-            ctxt, transfer_id, shutdown_instance=shutdown_instance,
+            ctxt, transfer_id, shutdown_instances=shutdown_instance,
             auto_deploy=auto_deploy)
         result_msg = 'Execution %s for Transfer %s' % (
             execution.get('id'), execution.get('action_id'))