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

Document `delete_replica_source_snapshots` return value

`delete_replica_source_snapshots` is expected to return the updated
volumes info, even if the provider method is a no-op. If nothing
is returned, deleting the target replica disks will fail.

As such, we'll document the expected return value.
Lucian Petrut 2 недель назад
Родитель
Сommit
5ad7d4cd40
1 измененных файлов с 2 добавлено и 1 удалено
  1. 2 1
      coriolis/providers/base.py

+ 2 - 1
coriolis/providers/base.py

@@ -969,8 +969,9 @@ class BaseReplicaExportProvider(BaseExportInstanceProvider):
                                    parameters
         :param volumes_info: destination volumes conforming to
                              disk_sync_resources_info_schema.json
+        :returns: the updated volumes info
         """
-        pass
+        return volumes_info
 
     @abc.abstractmethod
     def shutdown_instance(