You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@libcloud.apache.org by qu...@apache.org on 2017/10/06 19:20:34 UTC
libcloud git commit: azure_arm: Remove bogus handling of 'updating'
state
Repository: libcloud
Updated Branches:
refs/heads/trunk 311a9546b -> 8eab5d210
azure_arm: Remove bogus handling of 'updating' state
Project: http://git-wip-us.apache.org/repos/asf/libcloud/repo
Commit: http://git-wip-us.apache.org/repos/asf/libcloud/commit/8eab5d21
Tree: http://git-wip-us.apache.org/repos/asf/libcloud/tree/8eab5d21
Diff: http://git-wip-us.apache.org/repos/asf/libcloud/diff/8eab5d21
Branch: refs/heads/trunk
Commit: 8eab5d210cfca7115bd0f38ad270c53f4b90d0c3
Parents: 311a954
Author: Quentin Pradet <qu...@apache.org>
Authored: Fri Oct 6 23:15:07 2017 +0400
Committer: Quentin Pradet <qu...@apache.org>
Committed: Fri Oct 6 23:16:19 2017 +0400
----------------------------------------------------------------------
CHANGES.rst | 2 +-
libcloud/compute/drivers/azure_arm.py | 3 +--
2 files changed, 2 insertions(+), 3 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/libcloud/blob/8eab5d21/CHANGES.rst
----------------------------------------------------------------------
diff --git a/CHANGES.rst b/CHANGES.rst
index 5ea6bd2..d0dd67f 100644
--- a/CHANGES.rst
+++ b/CHANGES.rst
@@ -34,7 +34,7 @@ Compute
- [GCE] Allow setting service account in instance templates (LIBCLOUD-947, GITHUB-1108)
[Evan Carter]
-- [ARM] Fix API call on powerOff, convert more node states (GITHUB-1003)
+- [ARM] Fix API call on powerOff, understand PAUSED state (GITHUB-1003)
[Markos Gogoulos]
Changes in Apache Libcloud 2.2.1
http://git-wip-us.apache.org/repos/asf/libcloud/blob/8eab5d21/libcloud/compute/drivers/azure_arm.py
----------------------------------------------------------------------
diff --git a/libcloud/compute/drivers/azure_arm.py b/libcloud/compute/drivers/azure_arm.py
index bb6383c..a2237bd 100644
--- a/libcloud/compute/drivers/azure_arm.py
+++ b/libcloud/compute/drivers/azure_arm.py
@@ -1947,8 +1947,7 @@ class AzureNodeDriver(NodeDriver):
r = self.connection.request(action,
params={"api-version": "2015-06-15"})
for status in r.object["statuses"]:
- if status["code"] in ["ProvisioningState/creating",
- "ProvisioningState/updating"]:
+ if status["code"] in ["ProvisioningState/creating"]:
state = NodeState.PENDING
break
elif status["code"] == "ProvisioningState/deleting":