libcloud-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From anthonys...@apache.org
Subject [1/4] libcloud git commit: linode stop node
Date Sat, 01 Apr 2017 00:49:00 GMT
Repository: libcloud
Updated Branches:
  refs/heads/trunk 53591b7a8 -> c4cfea6e1


linode stop node


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

Branch: refs/heads/trunk
Commit: 5bd4e45e431c80b3aa72cf38ad30ad4c849f2398
Parents: f90a251
Author: Markos Gogoulos <mgogoulos@mist.io>
Authored: Wed Feb 15 17:51:03 2017 +0200
Committer: Anthony Shaw <anthonyshaw@apache.org>
Committed: Sat Apr 1 11:47:22 2017 +1100

----------------------------------------------------------------------
 libcloud/compute/drivers/linode.py | 9 +++++++++
 1 file changed, 9 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/libcloud/blob/5bd4e45e/libcloud/compute/drivers/linode.py
----------------------------------------------------------------------
diff --git a/libcloud/compute/drivers/linode.py b/libcloud/compute/drivers/linode.py
index 94ac2a0..24d086c 100644
--- a/libcloud/compute/drivers/linode.py
+++ b/libcloud/compute/drivers/linode.py
@@ -127,6 +127,15 @@ class LinodeNodeDriver(NodeDriver):
         self.connection.request(API_ROOT, params=params)
         return True
 
+    def ex_stop_node(self, node):
+        """
+        Shutdown the given Linode
+
+        """
+        params = {"api_action": "linode.shutdown", "LinodeID": node.id}
+        self.connection.request(API_ROOT, params=params)
+        return True
+
     def reboot_node(self, node):
         """
         Reboot the given Linode


Mime
View raw message