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

Renames parameter in validate_endpoint_connection

Alessandro Pilotti 9 лет назад
Родитель
Сommit
1965c3b9e9
2 измененных файлов с 4 добавлено и 4 удалено
  1. 2 2
      coriolis/worker/rpc/client.py
  2. 2 2
      coriolis/worker/rpc/server.py

+ 2 - 2
coriolis/worker/rpc/client.py

@@ -41,11 +41,11 @@ class WorkerClient(object):
             limit=limit,
             instance_name_pattern=instance_name_pattern)
 
-    def validate_endpoint_connection(self, ctxt, endpoint_type,
+    def validate_endpoint_connection(self, ctxt, platform_name,
                                      connection_info):
         return self._client.call(
             ctxt, 'validate_endpoint_connection',
-            endpoint_type=endpoint_type,
+            platform_name=platform_name,
             connection_info=connection_info)
 
     def get_available_providers(self, ctxt):

+ 2 - 2
coriolis/worker/rpc/server.py

@@ -188,10 +188,10 @@ class WorkerServerEndpoint(object):
     def get_available_providers(self, ctxt):
         return providers_factory.get_available_providers()
 
-    def validate_endpoint_connection(self, ctxt, endpoint_type,
+    def validate_endpoint_connection(self, ctxt, platform_name,
                                      connection_info):
         provider = providers_factory.get_provider(
-            endpoint_type, constants.PROVIDER_TYPE_ENDPOINT, None)
+            platform_name, constants.PROVIDER_TYPE_ENDPOINT, None)
 
         secret_connection_info = utils.get_secret_connection_info(
             ctxt, connection_info)