libcloud-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From anthonys...@apache.org
Subject [03/20] libcloud git commit: FAM-902 Fixed api version
Date Fri, 11 Aug 2017 05:00:45 GMT
FAM-902 Fixed api version


Project: http://git-wip-us.apache.org/repos/asf/libcloud/repo
Commit: http://git-wip-us.apache.org/repos/asf/libcloud/commit/439e4dc8
Tree: http://git-wip-us.apache.org/repos/asf/libcloud/tree/439e4dc8
Diff: http://git-wip-us.apache.org/repos/asf/libcloud/diff/439e4dc8

Branch: refs/heads/trunk
Commit: 439e4dc878de430ca41a258e27abf121c5721e44
Parents: aba57d6
Author: mermoldy <s.babak@scalr.com>
Authored: Mon May 22 20:22:01 2017 +0300
Committer: Anthony Shaw <anthonyshaw@apache.org>
Committed: Fri Aug 11 14:59:31 2017 +1000

----------------------------------------------------------------------
 libcloud/compute/drivers/azure_arm.py | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/libcloud/blob/439e4dc8/libcloud/compute/drivers/azure_arm.py
----------------------------------------------------------------------
diff --git a/libcloud/compute/drivers/azure_arm.py b/libcloud/compute/drivers/azure_arm.py
index da7596f..eed44d0 100644
--- a/libcloud/compute/drivers/azure_arm.py
+++ b/libcloud/compute/drivers/azure_arm.py
@@ -1544,7 +1544,8 @@ class AzureNodeDriver(NodeDriver):
         :rtype: :class:`.Node`
         """
 
-        r = self.connection.request(id, params={"api-version": "2015-06-15"})
+        r = self.connection.request(
+            id, params={"api-version": RESOURCE_API_VERSION})
         return self._to_node(r.object)
 
     def ex_get_volume(self, id):
@@ -1558,7 +1559,8 @@ class AzureNodeDriver(NodeDriver):
         :rtype: :class:`.StorageVolume`
         """
 
-        r = self.connection.request(id, params={"api-version": "2015-06-15"})
+        r = self.connection.request(
+            id, params={"api-version": RESOURCE_API_VERSION})
         return self._to_volume(r.object)
 
     def ex_get_snapshot(self, id):
@@ -1572,7 +1574,8 @@ class AzureNodeDriver(NodeDriver):
         :rtype: :class:`.VolumeSnapshot`
         """
 
-        r = self.connection.request(id, params={"api-version": "2015-06-15"})
+        r = self.connection.request(
+            id, params={"api-version": RESOURCE_API_VERSION})
         return self._to_snapshot(r.object)
 
     def ex_get_public_ip(self, id):


Mime
View raw message