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/21 22:12:43 UTC

[6/9] libcloud git commit: Fix publicEnvironments to be a dict as intended.

Fix publicEnvironments to be a dict as intended.


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

Branch: refs/heads/trunk
Commit: a5654cb4d0f2b1d4c727fe22e0e791b6f10b71c4
Parents: e1cc5c7
Author: Peter Amstutz <pe...@curoverse.com>
Authored: Fri Jan 13 16:08:22 2017 -0500
Committer: Peter Amstutz <pe...@curoverse.com>
Committed: Thu Apr 20 14:46:22 2017 -0400

----------------------------------------------------------------------
 libcloud/common/azure_arm.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/libcloud/blob/a5654cb4/libcloud/common/azure_arm.py
----------------------------------------------------------------------
diff --git a/libcloud/common/azure_arm.py b/libcloud/common/azure_arm.py
index d4984a5..a73a905 100644
--- a/libcloud/common/azure_arm.py
+++ b/libcloud/common/azure_arm.py
@@ -57,7 +57,7 @@ class AzureAuthJsonResponse(JsonResponse):
             return str(b)
 
 # Based on https://github.com/Azure/azure-xplat-cli/blob/master/lib/util/profile/environment.js
-publicEnvironments = [
+publicEnvironments = {v['name']: v for v in [
   {
     'name': 'default',
     'portalUrl': 'http://go.microsoft.com/fwlink/?LinkId=254433',
@@ -129,7 +129,7 @@ publicEnvironments = [
     'keyVaultDnsSuffix': '.vault.microsoftazure.de',
     'azureDataLakeStoreFileSystemEndpointSuffix': 'N/A',
     'azureDataLakeAnalyticsCatalogAndJobEndpointSuffix': 'N/A'
-  }]
+  }]}
 
 class AzureResourceManagementConnection(ConnectionUserAndKey):
     """