Explorar el Código

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 hace 2 semanas
padre
commit
5ad7d4cd40
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  1. 2 1
      coriolis/providers/base.py

+ 2 - 1
coriolis/providers/base.py

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