You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@libcloud.apache.org by an...@apache.org on 2017/04/10 23:02:03 UTC

[1/2] libcloud git commit: Fix impossible location condition Closes #1030

Repository: libcloud
Updated Branches:
  refs/heads/trunk a5731abb0 -> 30715a44c


Fix impossible location condition
Closes #1030


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

Branch: refs/heads/trunk
Commit: 048d31835c5ce7c7a5a0248d29267b2796d1fb04
Parents: a5731ab
Author: Joseph Hall <pe...@gmail.com>
Authored: Mon Apr 10 16:37:17 2017 -0600
Committer: Anthony Shaw <an...@apache.org>
Committed: Tue Apr 11 09:00:49 2017 +1000

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


http://git-wip-us.apache.org/repos/asf/libcloud/blob/048d3183/libcloud/compute/drivers/azure_arm.py
----------------------------------------------------------------------
diff --git a/libcloud/compute/drivers/azure_arm.py b/libcloud/compute/drivers/azure_arm.py
index 6143925..a45d03d 100644
--- a/libcloud/compute/drivers/azure_arm.py
+++ b/libcloud/compute/drivers/azure_arm.py
@@ -756,10 +756,11 @@ class AzureNodeDriver(NodeDriver):
         :rtype: ``list``
         """
 
-        if location is None and self.default_location:
-            location = self.default_location
-        else:
-            raise ValueError("location is required.")
+        if location is None:
+            if self.default_location:
+                location = self.default_location
+            else:
+                raise ValueError("location is required.")
 
         action = "/subscriptions/%s/providers/Microsoft.Compute/" \
                  "locations/%s/publishers" \


[2/2] libcloud git commit: changes for #1030

Posted by an...@apache.org.
changes for #1030


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

Branch: refs/heads/trunk
Commit: 30715a44c18e09cb6be5167d8c968e724944fc4b
Parents: 048d318
Author: Anthony Shaw <an...@apache.org>
Authored: Tue Apr 11 09:01:48 2017 +1000
Committer: Anthony Shaw <an...@apache.org>
Committed: Tue Apr 11 09:01:48 2017 +1000

----------------------------------------------------------------------
 CHANGES.rst | 4 ++++
 1 file changed, 4 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/libcloud/blob/30715a44/CHANGES.rst
----------------------------------------------------------------------
diff --git a/CHANGES.rst b/CHANGES.rst
index bb4acef..4ff0075 100644
--- a/CHANGES.rst
+++ b/CHANGES.rst
@@ -14,6 +14,10 @@ Common
 Compute
 ~~~~~~~
 
+- Fix Azure ARM driver condition for ex_list_publishers where location is specified
+  [GITHUB-1030]
+  (Joseph Hall)
+
 - Added Import Snapshot and Describe Import Snapshot to EC2 compute driver
   [GITHUB-1023]
   (Nirzari Iyer)