Jelajahi Sumber

Renamed Endpoints API WSGI action router method to '_validate_connection'.

Nashwan Azhari 8 tahun lalu
induk
melakukan
77a77dac9c
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  1. 1 1
      coriolis/api/v1/endpoint_actions.py

+ 1 - 1
coriolis/api/v1/endpoint_actions.py

@@ -14,7 +14,7 @@ class EndpointActionsController(api_wsgi.Controller):
         super(EndpointActionsController, self).__init__()
         super(EndpointActionsController, self).__init__()
 
 
     @api_wsgi.action('validate-connection')
     @api_wsgi.action('validate-connection')
-    def _cancel(self, req, id, body):
+    def _validate_connection(self, req, id, body):
         try:
         try:
             is_valid, message = self._endpoint_api.validate_connection(
             is_valid, message = self._endpoint_api.validate_connection(
                 req.environ['coriolis.context'], id)
                 req.environ['coriolis.context'], id)