You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@libcloud.apache.org by to...@apache.org on 2019/12/02 20:57:25 UTC

[libcloud] 01/04: Fix invalid method signature.

This is an automated email from the ASF dual-hosted git repository.

tomaz pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/libcloud.git

commit 5e6dfd5143e5b9015ae11b2f662502c9867e8938
Author: Tomaz Muraus <to...@tomaz.me>
AuthorDate: Mon Dec 2 21:39:20 2019 +0100

    Fix invalid method signature.
---
 libcloud/compute/drivers/azure_arm.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/libcloud/compute/drivers/azure_arm.py b/libcloud/compute/drivers/azure_arm.py
index 0c90db2..7babd7d 100644
--- a/libcloud/compute/drivers/azure_arm.py
+++ b/libcloud/compute/drivers/azure_arm.py
@@ -1996,7 +1996,7 @@ class AzureNodeDriver(NodeDriver):
                                     method='POST')
         return r.object
 
-    def stop_node(self, node, deallocate=True):
+    def stop_node(self, node, ex_deallocate=True):
         """
         Stop a running node.
 
@@ -2011,7 +2011,7 @@ class AzureNodeDriver(NodeDriver):
         :type deallocate: ``bool``
         """
 
-        if deallocate:
+        if ex_deallocate:
             target = "%s/deallocate" % node.id
         else:
             target = "%s/powerOff" % node.id