libcloud-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From quent...@apache.org
Subject [4/6] libcloud git commit: Force provisioningState to lowercase for comparison.
Date Fri, 13 Oct 2017 04:21:51 GMT
Force provisioningState to lowercase for comparison.

Signed-off-by: Quentin Pradet <quentinp@apache.org>


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

Branch: refs/heads/trunk
Commit: 2a9566937e97f7a3ad6b471a56097c0f48a69731
Parents: 6c082c1
Author: Peter Amstutz <peter.amstutz@curoverse.com>
Authored: Tue Oct 10 16:10:15 2017 -0400
Committer: Quentin Pradet <quentinp@apache.org>
Committed: Fri Oct 13 08:16:04 2017 +0400

----------------------------------------------------------------------
 libcloud/compute/drivers/azure_arm.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/libcloud/blob/2a956693/libcloud/compute/drivers/azure_arm.py
----------------------------------------------------------------------
diff --git a/libcloud/compute/drivers/azure_arm.py b/libcloud/compute/drivers/azure_arm.py
index dc183de..b4a31c5 100644
--- a/libcloud/compute/drivers/azure_arm.py
+++ b/libcloud/compute/drivers/azure_arm.py
@@ -2024,7 +2024,7 @@ class AzureNodeDriver(NodeDriver):
         if fetch_power_state:
             state = self._fetch_power_state(data)
         else:
-            ps = data["properties"]["provisioningState"]
+            ps = data["properties"]["provisioningState"].lower()
             if ps == "creating":
                 state = NodeState.PENDING
             elif ps == "deleting":


Mime
View raw message