You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@libcloud.apache.org by to...@apache.org on 2020/01/08 05:37:35 UTC
[libcloud] branch trunk updated: fix curl command
This is an automated email from the ASF dual-hosted git repository.
tomaz pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/libcloud.git
The following commit(s) were added to refs/heads/trunk by this push:
new 76bb6fd fix curl command
new fda2622 Merge pull request #1402 from bit-project-de/patch-1
76bb6fd is described below
commit 76bb6fd4cc161b1e60bbafbccaf172e553d90212
Author: bit-project-de <31...@users.noreply.github.com>
AuthorDate: Mon Jan 6 13:28:36 2020 +0100
fix curl command
1. Header must use "X-Ovh-Application" to correctly provide the App Key for OVH Driver.
2. Comma at end of accessRules Array causes "invalid JSON" response.
---
docs/compute/drivers/ovh.rst | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/docs/compute/drivers/ovh.rst b/docs/compute/drivers/ovh.rst
index 8633595..f394a03 100644
--- a/docs/compute/drivers/ovh.rst
+++ b/docs/compute/drivers/ovh.rst
@@ -28,7 +28,7 @@ at https://eu.api.ovh.com/createApp/. Next step, create a consumer key with
following command: ::
curl -X POST \
- -H 'X-Ra-Application: youApplicationKey' \
+ -H 'X-Ovh-Application: youApplicationKey' \
-H 'Content-Type: application/json' \
-d '{
"accessRules":
@@ -36,7 +36,7 @@ following command: ::
{"method":"GET","path":"/*"},
{"method":"POST","path":"/*"},
{"method":"DELETE","path":"/*"},
- {"method":"PUT","path":"/*"},
+ {"method":"PUT","path":"/*"}
],
"redirection":"http://ovh.com"
}' \