Add Outscale API constants working with TINA OS Update version and namespace matching the current TINA OS API (AWS EC2 compatible)
This patch handle two different versions between the API version used to issue requests and the API version crafted in the namespace. It is a bug in the server side currently. The bugfix is work in progress. Meanwhile we need those bits in place to keep the new APIs working. Signed-off-by: Javier M. Mellid <jmun...@igalia.com> Project: http://git-wip-us.apache.org/repos/asf/libcloud/repo Commit: http://git-wip-us.apache.org/repos/asf/libcloud/commit/a3dbabde Tree: http://git-wip-us.apache.org/repos/asf/libcloud/tree/a3dbabde Diff: http://git-wip-us.apache.org/repos/asf/libcloud/diff/a3dbabde Branch: refs/heads/trunk Commit: a3dbabdeb063e706ea3be65e391c1d00d3abdcfc Parents: 12d4cf0 Author: Javier M. Mellid <jmun...@igalia.com> Authored: Mon Oct 3 12:15:53 2016 +0200 Committer: Anthony Shaw <anthonys...@apache.org> Committed: Fri Oct 7 13:23:41 2016 +1100 ---------------------------------------------------------------------- libcloud/compute/drivers/ec2.py | 4 ++++ 1 file changed, 4 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/libcloud/blob/a3dbabde/libcloud/compute/drivers/ec2.py ---------------------------------------------------------------------- diff --git a/libcloud/compute/drivers/ec2.py b/libcloud/compute/drivers/ec2.py index 083fa4a..10889c7 100644 --- a/libcloud/compute/drivers/ec2.py +++ b/libcloud/compute/drivers/ec2.py @@ -86,6 +86,10 @@ NAMESPACE = 'http://ec2.amazonaws.com/doc/%s/' % (API_VERSION) DEFAULT_EUCA_API_VERSION = '3.3.0' EUCA_NAMESPACE = 'http://msgs.eucalyptus.com/%s' % (DEFAULT_EUCA_API_VERSION) +# Outscale Constants +DEFAULT_OUTSCALE_API_VERSION = '2016-04-01' +OUTSCALE_NAMESPACE = 'http://api.outscale.com/wsdl/fcuext/2014-04-15/' + """ Sizes must be hardcoded, because Amazon doesn't provide an API to fetch them. From http://aws.amazon.com/ec2/instance-types/