Просмотр исходного кода

Default volumes info to lists in update tasks.

Nashwan Azhari 6 лет назад
Родитель
Сommit
bfbfb2d8d1
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      coriolis/tasks/replica_tasks.py

+ 2 - 2
coriolis/tasks/replica_tasks.py

@@ -568,7 +568,7 @@ class UpdateSourceReplicaTask(base.TaskRunner):
                 " updating Replicas" % origin["type"])
                 " updating Replicas" % origin["type"])
 
 
         origin_connection_info = base.get_connection_info(ctxt, origin)
         origin_connection_info = base.get_connection_info(ctxt, origin)
-        volumes_info = task_info.get("volumes_info", {})
+        volumes_info = task_info.get("volumes_info", [])
 
 
         LOG.info("Checking source provider environment params")
         LOG.info("Checking source provider environment params")
         # NOTE: the `source_environment` in the `origin` is the one set
         # NOTE: the `source_environment` in the `origin` is the one set
@@ -610,7 +610,7 @@ class UpdateDestinationReplicaTask(base.TaskRunner):
         destination_connection_info = base.get_connection_info(
         destination_connection_info = base.get_connection_info(
             ctxt, destination)
             ctxt, destination)
         export_info = task_info.get("export_info", {})
         export_info = task_info.get("export_info", {})
-        volumes_info = task_info.get("volumes_info", {})
+        volumes_info = task_info.get("volumes_info", [])
 
 
         LOG.info("Checking destination provider environment params")
         LOG.info("Checking destination provider environment params")
         # NOTE: the `target_environment` in the `destination` is the one
         # NOTE: the `target_environment` in the `destination` is the one