missing module Request and add @default_adapter to mix task
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65
diff --git a/lib/ex_ovh/client.ex b/lib/ex_ovh/client.ex
index 4153226..3e010a6 100644
--- a/lib/ex_ovh/client.ex
+++ b/lib/ex_ovh/client.ex
@@ -101,7 +101,7 @@ defmodule ExOvh.Client do
@spec prepare_request(HTTPipe.Conn.t | HTTPipe.Request.t) :: HTTPipe.Conn.t
def prepare_request(conn) do
client = unquote(opts) |> Keyword.fetch!(:client)
- Request.apply_transformations(conn, client)
+ ExOvh.Request.apply_transformations(conn, client)
end
@doc "Sends a request to the ovh api using [httpipe](https://hex.pm/packages/httpipe)."
diff --git a/lib/mix/tasks/ovh.ex b/lib/mix/tasks/ovh.ex
index 5d690b0..13d4496 100644
--- a/lib/mix/tasks/ovh.ex
+++ b/lib/mix/tasks/ovh.ex
@@ -207,6 +207,7 @@ defmodule Mix.Tasks.Ovh do
body: body,
headers: headers
},
+ adapter: @default_adapter,
adapter_options: options
}
{:ok, conn} = HTTPipe.Conn.execute(conn)
@@ -269,6 +270,7 @@ defmodule Mix.Tasks.Ovh do
body: body,
headers: headers
},
+ adapter: @default_adapter,
adapter_options: options
}
{:ok, conn} = HTTPipe.Conn.execute(conn)
@@ -326,6 +328,7 @@ defmodule Mix.Tasks.Ovh do
body: body,
headers: headers
},
+ adapter: @default_adapter,
adapter_options: options
}
{:ok, conn} = HTTPipe.Conn.execute(conn)
@@ -351,6 +354,7 @@ defmodule Mix.Tasks.Ovh do
body: body,
headers: headers
},
+ adapter: @default_adapter,
adapter_options: options
}
{:ok, conn} = HTTPipe.Conn.execute(conn)
@@ -428,6 +432,7 @@ defmodule Mix.Tasks.Ovh do
body: body,
headers: headers
},
+ adapter: @default_adapter,
adapter_options: options
}
{:ok, conn} = HTTPipe.Conn.execute(conn)
@@ -515,6 +520,7 @@ defmodule Mix.Tasks.Ovh do
body: body,
headers: headers
},
+ adapter: @default_adapter,
adapter_options: options
}
{:ok, conn} = HTTPipe.Conn.execute(conn)