libcloud-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From to...@apache.org
Subject [2/3] git commit: Add name attribute to all OpenNebula driver classes.
Date Thu, 30 Jan 2014 14:32:54 GMT
Add name attribute to all OpenNebula driver classes.


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

Branch: refs/heads/trunk
Commit: 4a37c1feecdc36f777579e2ac49b0c2e655db1ee
Parents: 9bba66e
Author: Tomaz Muraus <tomaz@apache.org>
Authored: Thu Jan 30 15:28:03 2014 +0100
Committer: Tomaz Muraus <tomaz@apache.org>
Committed: Thu Jan 30 15:28:03 2014 +0100

----------------------------------------------------------------------
 libcloud/compute/drivers/opennebula.py | 11 ++++++++++-
 1 file changed, 10 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/libcloud/blob/4a37c1fe/libcloud/compute/drivers/opennebula.py
----------------------------------------------------------------------
diff --git a/libcloud/compute/drivers/opennebula.py b/libcloud/compute/drivers/opennebula.py
index bdb9755..08db5ed 100644
--- a/libcloud/compute/drivers/opennebula.py
+++ b/libcloud/compute/drivers/opennebula.py
@@ -647,7 +647,7 @@ class OpenNebula_1_4_NodeDriver(OpenNebulaNodeDriver):
     OpenNebula.org node driver for OpenNebula.org v1.4.
     """
 
-    pass
+    name = 'OpenNebula (v1.4)'
 
 
 class OpenNebula_2_0_NodeDriver(OpenNebulaNodeDriver):
@@ -656,6 +656,8 @@ class OpenNebula_2_0_NodeDriver(OpenNebulaNodeDriver):
     v2.2.
     """
 
+    name = 'OpenNebula (v2.0 - v2.2)'
+
     def create_node(self, **kwargs):
         """
         Create a new OpenNebula node.
@@ -951,6 +953,8 @@ class OpenNebula_3_0_NodeDriver(OpenNebula_2_0_NodeDriver):
     OpenNebula.org node driver for OpenNebula.org v3.0.
     """
 
+    name = 'OpenNebula (v3.0)'
+
     def ex_node_set_save_name(self, node, name):
         """
         Build action representation and instruct node to commit action.
@@ -1020,6 +1024,8 @@ class OpenNebula_3_2_NodeDriver(OpenNebula_3_0_NodeDriver):
     OpenNebula.org node driver for OpenNebula.org v3.2.
     """
 
+    name = 'OpenNebula (v3.2)'
+
     def reboot_node(self, node):
         return self.ex_node_action(node, ACTION.REBOOT)
 
@@ -1086,6 +1092,8 @@ class OpenNebula_3_6_NodeDriver(OpenNebula_3_2_NodeDriver):
     OpenNebula.org node driver for OpenNebula.org v3.6.
     """
 
+    name = 'OpenNebula (v3.6)'
+
     def create_volume(self, size, name, location=None, snapshot=None):
         storage = ET.Element('STORAGE')
 
@@ -1205,6 +1213,7 @@ class OpenNebula_3_8_NodeDriver(OpenNebula_3_6_NodeDriver):
     OpenNebula.org node driver for OpenNebula.org v3.8.
     """
 
+    name = 'OpenNebula (v3.8)'
     plain_auth = API_PLAIN_AUTH
 
     def _to_sizes(self, object):


Mime
View raw message