libcloud-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From anthonys...@apache.org
Subject [12/13] libcloud git commit: fix network_adapter_name property in DimensionDataNic data contract class
Date Mon, 10 Oct 2016 00:02:06 GMT
fix network_adapter_name property in DimensionDataNic data contract class


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

Branch: refs/heads/trunk
Commit: 487e0b77aae6c8bedcc1a0cbe1df038861c1fa29
Parents: a32546f
Author: Samuel Chong <samuelchong1@gmail.com>
Authored: Mon Oct 10 10:53:36 2016 +1100
Committer: Samuel Chong <samuelchong1@gmail.com>
Committed: Mon Oct 10 10:53:36 2016 +1100

----------------------------------------------------------------------
 libcloud/common/dimensiondata.py | 13 +++++++------
 1 file changed, 7 insertions(+), 6 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/libcloud/blob/487e0b77/libcloud/common/dimensiondata.py
----------------------------------------------------------------------
diff --git a/libcloud/common/dimensiondata.py b/libcloud/common/dimensiondata.py
index 5f618f9..84bca0d 100644
--- a/libcloud/common/dimensiondata.py
+++ b/libcloud/common/dimensiondata.py
@@ -1729,7 +1729,8 @@ class DimensionDataNic(object):
     A representation of Network Adapter in Dimension Data
     """
 
-    def __init__(self, private_ip_v4=None, vlan=None, network_adapter=None):
+    def __init__(self, private_ip_v4=None, vlan=None,
+                 network_adapter_name=None):
         """
         Initialize an instance of :class:`DimensionDataNic`
 
@@ -1739,14 +1740,14 @@ class DimensionDataNic(object):
         :param vlan: Network VLAN
         :type  vlan: class: DimensionDataVlan or ``str``
 
-        :param network_adapter: Network Adapter Name
-        :type  network_adapter: ``str``
+        :param network_adapter_name: Network Adapter Name
+        :type  network_adapter_name: ``str``
         """
         self.private_ip_v4 = private_ip_v4
         self.vlan = vlan
-        self.network_adapter_name = network_adapter
+        self.network_adapter_name = network_adapter_name
 
     def __repr__(self):
         return ('<DimensionDataNic: private_ip_v4=%s, vlan=%s,'
-                'network_adapter=%s>'
-                % (self.private_ip_v4, self.vlan, self.network_adapter))
+                'network_adapter_name=%s>'
+                % (self.private_ip_v4, self.vlan, self.network_adapter_name))


Mime
View raw message