Commit 3de2663ce955b5240d3e94231dbc3e9b26f9afa6

Stephen Moloney 2016-02-12T21:40:38

remove request/2 for ExOvh.Hubic.OpenstackApi.Request

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
diff --git a/lib/hubic/openstack_api/request.ex b/lib/hubic/openstack_api/request.ex
index bab2983..d948616 100644
--- a/lib/hubic/openstack_api/request.ex
+++ b/lib/hubic/openstack_api/request.ex
@@ -7,15 +7,10 @@ defmodule ExOvh.Hubic.OpenstackApi.Request do
   ###################
 
 
-  @doc "For requests to the hubic openstack compliant api"
-  @spec request(query :: ExOvh.Client.raw_query_t)
-                :: {:ok, ExOvh.Client.response_t} | {:error, ExOvh.Client.response_t}
-  def request({method, uri, params} = query), do: request(ExOvh, query)
-
-
   @spec request(client :: atom, query :: ExOvh.Client.raw_query_t)
                 :: {:ok, ExOvh.Client.response_t} | {:error, ExOvh.Client.response_t}
   def request(client, {method, uri, params} = query) do
+    LoggingUtils.log_mod_func_line(__ENV__, :debug)
     {method, uri, options} = Auth.prepare_request(client, query)
     |> LoggingUtils.log_return(:debug)
     resp = HTTPotion.request(method, uri, options)