cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sow...@apache.org
Subject git commit: updated refs/heads/master to 4223c51
Date Mon, 17 Aug 2015 10:01:38 GMT
Repository: cloudstack
Updated Branches:
  refs/heads/master caa524b01 -> 4223c519d


CLOUDSTACK-8738 - Added two methods which were missed out earlier in base.py for Storage Pool
maintenance


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

Branch: refs/heads/master
Commit: 4223c519dd8c8a09eb577171a2e9075b01e6ede4
Parents: caa524b
Author: Sowmya Krishnan <sowmya.krishnan@citrix.com>
Authored: Mon Aug 17 15:51:48 2015 +0530
Committer: Sowmya Krishnan <sowmya.krishnan@citrix.com>
Committed: Mon Aug 17 15:51:48 2015 +0530

----------------------------------------------------------------------
 tools/marvin/marvin/lib/base.py | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/4223c519/tools/marvin/marvin/lib/base.py
----------------------------------------------------------------------
diff --git a/tools/marvin/marvin/lib/base.py b/tools/marvin/marvin/lib/base.py
index 71aa3e6..6356914 100755
--- a/tools/marvin/marvin/lib/base.py
+++ b/tools/marvin/marvin/lib/base.py
@@ -2638,6 +2638,22 @@ class StoragePool:
         return apiclient.enableStorageMaintenance(cmd)
 
     @classmethod
+    def enableMaintenance(cls, apiclient, id):
+        """enables maintenance mode Storage pool"""
+
+        cmd = enableStorageMaintenance.enableStorageMaintenanceCmd()
+        cmd.id = id
+        return apiclient.enableStorageMaintenance(cmd)
+
+    @classmethod
+    def cancelMaintenance(cls, apiclient, id):
+        """Cancels maintenance mode Storage pool"""
+
+        cmd = cancelStorageMaintenance.cancelStorageMaintenanceCmd()
+        cmd.id = id
+        return apiclient.cancelStorageMaintenance(cmd)
+
+    @classmethod
     def list(cls, apiclient, **kwargs):
         """List all storage pools matching criteria"""
 


Mime
View raw message