mix task bug fix
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
diff --git a/CHANGELOG.md b/CHANGELOG.md
index aa0aa39..9bd55b6 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,6 +1,13 @@
# Changelog
+## v0.3.3
+
+[bug fix]
+- Fix error `function :hackney.execute_request/5 is undefined or private` when
+running `mix ovh` task by setting the adapter correctly
+
+
## v0.3.2
[security fix]
diff --git a/lib/mix/tasks/ovh.ex b/lib/mix/tasks/ovh.ex
index f65e090..ec1a6a3 100644
--- a/lib/mix/tasks/ovh.ex
+++ b/lib/mix/tasks/ovh.ex
@@ -34,7 +34,7 @@ defmodule Mix.Tasks.Ovh do
use Mix.Task
alias ExOvh.Defaults
@default_headers [{"Content-Type", "application/json; charset=utf-8"}]
- @default_adapter :hackney
+ @default_adapter HTTPipe.Adapters.Hackney
@default_hackney_options [ timeout: 30000, recv_timeout: (60000 * 1) ]
@default_name "ex_ovh"
@default_description "ex_ovh application"
diff --git a/mix.exs b/mix.exs
index 4c4821c..2cad421 100644
--- a/mix.exs
+++ b/mix.exs
@@ -1,6 +1,6 @@
defmodule ExOvh.Mixfile do
use Mix.Project
- @version "0.3.2"
+ @version "0.3.3"
@elixir "~> 1.3 or ~> 1.4 or ~> 1.5"
def project do