libcloud-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From to...@apache.org
Subject [09/10] libcloud git commit: the field name is still camel cased.
Date Thu, 08 Oct 2015 12:19:27 GMT
the field name is still camel cased.

Closes #593


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

Branch: refs/heads/trunk
Commit: eca8d8c576da4b37dc49043d9734f9a2e840e304
Parents: 0fa19ef
Author: Anthony Shaw <anthony.p.shaw@gmail.com>
Authored: Thu Oct 8 09:19:38 2015 +1100
Committer: Tomaz Muraus <tomaz@apache.org>
Committed: Thu Oct 8 14:12:30 2015 +0200

----------------------------------------------------------------------
 libcloud/compute/drivers/dimensiondata.py      | 28 ++++++++++-----------
 libcloud/loadbalancer/drivers/dimensiondata.py | 14 +++++------
 2 files changed, 21 insertions(+), 21 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/libcloud/blob/eca8d8c5/libcloud/compute/drivers/dimensiondata.py
----------------------------------------------------------------------
diff --git a/libcloud/compute/drivers/dimensiondata.py b/libcloud/compute/drivers/dimensiondata.py
index 95087af..18d7456 100644
--- a/libcloud/compute/drivers/dimensiondata.py
+++ b/libcloud/compute/drivers/dimensiondata.py
@@ -171,7 +171,7 @@ class DimensionDataNodeDriver(NodeDriver):
             'server/deleteServer',
             method='POST',
             data=ET.tostring(request_elm)).object
-        response_code = findtext(body, 'response_code', TYPES_URN)
+        response_code = findtext(body, 'responseCode', TYPES_URN)
         return response_code in ['IN_PROGRESS', 'OK']
 
     def reboot_node(self, node):
@@ -181,7 +181,7 @@ class DimensionDataNodeDriver(NodeDriver):
             'server/rebootServer',
             method='POST',
             data=ET.tostring(request_elm)).object
-        response_code = findtext(body, 'response_code', TYPES_URN)
+        response_code = findtext(body, 'responseCode', TYPES_URN)
         return response_code in ['IN_PROGRESS', 'OK']
 
     def list_nodes(self):
@@ -310,7 +310,7 @@ class DimensionDataNodeDriver(NodeDriver):
             'server/startServer',
             method='POST',
             data=ET.tostring(request_elm)).object
-        response_code = findtext(body, 'response_code', TYPES_URN)
+        response_code = findtext(body, 'responseCode', TYPES_URN)
         return response_code in ['IN_PROGRESS', 'OK']
 
     def ex_shutdown_graceful(self, node):
@@ -331,7 +331,7 @@ class DimensionDataNodeDriver(NodeDriver):
             'server/shutdownServer',
             method='POST',
             data=ET.tostring(request_elm)).object
-        response_code = findtext(body, 'response_code', TYPES_URN)
+        response_code = findtext(body, 'responseCode', TYPES_URN)
         return response_code in ['IN_PROGRESS', 'OK']
 
     def ex_power_off(self, node):
@@ -352,7 +352,7 @@ class DimensionDataNodeDriver(NodeDriver):
             'server/powerOffServer',
             method='POST',
             data=ET.tostring(request_elm)).object
-        response_code = findtext(body, 'response_code', TYPES_URN)
+        response_code = findtext(body, 'responseCode', TYPES_URN)
         return response_code in ['IN_PROGRESS', 'OK']
 
     def ex_reset(self, node):
@@ -373,7 +373,7 @@ class DimensionDataNodeDriver(NodeDriver):
             'server/resetServer',
             method='POST',
             data=ET.tostring(request_elm)).object
-        response_code = findtext(body, 'response_code', TYPES_URN)
+        response_code = findtext(body, 'responseCode', TYPES_URN)
         return response_code in ['IN_PROGRESS', 'OK']
 
     def ex_attach_node_to_vlan(self, node, vlan):
@@ -387,7 +387,7 @@ class DimensionDataNodeDriver(NodeDriver):
             'server/addNic',
             method='POST',
             data=ET.tostring(request)).object
-        response_code = findtext(response, 'response_code', TYPES_URN)
+        response_code = findtext(response, 'responseCode', TYPES_URN)
         return response_code in ['IN_PROGRESS', 'OK']
 
     def ex_destroy_nic(self, nic_id):
@@ -399,7 +399,7 @@ class DimensionDataNodeDriver(NodeDriver):
             'server/removeNic',
             method='POST',
             data=ET.tostring(request)).object
-        response_code = findtext(response, 'response_code', TYPES_URN)
+        response_code = findtext(response, 'responseCode', TYPES_URN)
         return response_code in ['IN_PROGRESS', 'OK']
 
     def ex_list_networks(self, location=None):
@@ -501,7 +501,7 @@ class DimensionDataNodeDriver(NodeDriver):
             method='POST',
             data=ET.tostring(delete_node)).object
 
-        response_code = findtext(result, 'response_code', TYPES_URN)
+        response_code = findtext(result, 'responseCode', TYPES_URN)
         return response_code in ['IN_PROGRESS', 'OK']
 
     def ex_create_vlan(self,
@@ -596,7 +596,7 @@ class DimensionDataNodeDriver(NodeDriver):
             method='POST',
             data=ET.tostring(delete_node)).object
 
-        response_code = findtext(result, 'response_code', TYPES_URN)
+        response_code = findtext(result, 'responseCode', TYPES_URN)
         return response_code in ['IN_PROGRESS', 'OK']
 
     def ex_list_vlans(self, location=None, network_domain=None):
@@ -656,7 +656,7 @@ class DimensionDataNodeDriver(NodeDriver):
             method='POST',
             data=ET.tostring(delete_node)).object
 
-        response_code = findtext(result, 'response_code', TYPES_URN)
+        response_code = findtext(result, 'responseCode', TYPES_URN)
         return response_code in ['IN_PROGRESS', 'OK']
 
     def ex_get_node_by_id(self, id):
@@ -738,7 +738,7 @@ class DimensionDataNodeDriver(NodeDriver):
             method='POST',
             data=ET.tostring(update_node)).object
 
-        response_code = findtext(result, 'response_code', TYPES_URN)
+        response_code = findtext(result, 'responseCode', TYPES_URN)
         return response_code in ['IN_PROGRESS', 'OK']
 
     def ex_delete_firewall_rule(self, rule):
@@ -749,7 +749,7 @@ class DimensionDataNodeDriver(NodeDriver):
             method='POST',
             data=ET.tostring(update_node)).object
 
-        response_code = findtext(result, 'response_code', TYPES_URN)
+        response_code = findtext(result, 'responseCode', TYPES_URN)
         return response_code in ['IN_PROGRESS', 'OK']
 
     def ex_create_nat_rule(self, network_domain, internal_ip, external_ip):
@@ -797,7 +797,7 @@ class DimensionDataNodeDriver(NodeDriver):
             method='POST',
             data=ET.tostring(update_node)).object
 
-        response_code = findtext(result, 'response_code', TYPES_URN)
+        response_code = findtext(result, 'responseCode', TYPES_URN)
         return response_code in ['IN_PROGRESS', 'OK']
 
     def ex_get_location_by_id(self, id):

http://git-wip-us.apache.org/repos/asf/libcloud/blob/eca8d8c5/libcloud/loadbalancer/drivers/dimensiondata.py
----------------------------------------------------------------------
diff --git a/libcloud/loadbalancer/drivers/dimensiondata.py b/libcloud/loadbalancer/drivers/dimensiondata.py
index 41fe29d..da5b45e 100644
--- a/libcloud/loadbalancer/drivers/dimensiondata.py
+++ b/libcloud/loadbalancer/drivers/dimensiondata.py
@@ -274,7 +274,7 @@ class DimensionDataLBDriver(Driver):
             'networkDomainVip/removePoolMember',
             method='POST',
             data=ET.tostring(create_pool_m)).object
-        response_code = findtext(result, 'response_code', TYPES_URN)
+        response_code = findtext(result, 'responseCode', TYPES_URN)
         return response_code in ['IN_PROGRESS', 'OK']
 
     def destroy_balancer(self, balancer):
@@ -295,7 +295,7 @@ class DimensionDataLBDriver(Driver):
             'networkDomainVip/deleteVirtualListener',
             method='POST',
             data=ET.tostring(delete_listener)).object
-        response_code = findtext(result, 'response_code', TYPES_URN)
+        response_code = findtext(result, 'responseCode', TYPES_URN)
         return response_code in ['IN_PROGRESS', 'OK']
 
     def ex_set_current_network_domain(self, network_domain_id):
@@ -680,7 +680,7 @@ class DimensionDataLBDriver(Driver):
             action='networkDomainVip/editPool',
             method='POST',
             data=ET.tostring(create_node_elm)).object
-        response_code = findtext(response, 'response_code', TYPES_URN)
+        response_code = findtext(response, 'responseCode', TYPES_URN)
         return response_code in ['IN_PROGRESS', 'OK']
 
     def ex_destroy_pool(self, pool):
@@ -701,7 +701,7 @@ class DimensionDataLBDriver(Driver):
             action='networkDomainVip/deletePool',
             method='POST',
             data=ET.tostring(destroy_request)).object
-        response_code = findtext(result, 'response_code', TYPES_URN)
+        response_code = findtext(result, 'responseCode', TYPES_URN)
         return response_code in ['IN_PROGRESS', 'OK']
 
     def ex_get_pool_members(self, pool_id):
@@ -746,7 +746,7 @@ class DimensionDataLBDriver(Driver):
             method='POST',
             data=ET.tostring(request)).object
 
-        response_code = findtext(result, 'response_code', TYPES_URN)
+        response_code = findtext(result, 'responseCode', TYPES_URN)
         return response_code in ['IN_PROGRESS', 'OK']
 
     def ex_destroy_pool_member(self, member, destroy_node=False):
@@ -775,7 +775,7 @@ class DimensionDataLBDriver(Driver):
         if member.node_id is not None and destroy_node is True:
             return self.ex_destroy_node(member.node_id)
         else:
-            response_code = findtext(result, 'response_code', TYPES_URN)
+            response_code = findtext(result, 'responseCode', TYPES_URN)
             return response_code in ['IN_PROGRESS', 'OK']
 
     def ex_get_nodes(self):
@@ -820,7 +820,7 @@ class DimensionDataLBDriver(Driver):
             action='networkDomainVip/deleteNode',
             method='POST',
             data=ET.tostring(destroy_request)).object
-        response_code = findtext(result, 'response_code', TYPES_URN)
+        response_code = findtext(result, 'responseCode', TYPES_URN)
         return response_code in ['IN_PROGRESS', 'OK']
 
     def _to_nodes(self, object):


Mime
View raw message