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

Merge pull request #23 from aznashwan/fix-get-storage

Add target-env param in `get_storage()` provider abstract method.
Nashwan Azhari 7 лет назад
Родитель
Сommit
0b7b8c8f0a
1 измененных файлов с 4 добавлено и 2 удалено
  1. 4 2
      coriolis/providers/base.py

+ 4 - 2
coriolis/providers/base.py

@@ -384,8 +384,10 @@ def get_os_morphing_tools_helper(conn, os_morphing_tools_clss,
 
 class BaseEndpointStorageProvider(object, with_metaclass(abc.ABCMeta)):
     @abc.abstractmethod
-    def get_storage(self, ctxt, connection_info):
-        """ Returns all the storage options available"""
+    def get_storage(self, ctxt, connection_info, target_environment):
+        """ Returns all the storage options available to the given
+        credentials within the provided target_environment.
+        """
         pass