summaryrefslogtreecommitdiff
path: root/nova/network
diff options
context:
space:
mode:
authorGábor Antal <antal@inf.u-szeged.hu>2016-01-20 18:42:47 +0100
committerGábor Antal <antal@inf.u-szeged.hu>2016-01-20 18:48:36 +0100
commitb44955c35429def97627e925da2f4d0568c1ecdd (patch)
tree6522c511a5ed48979698e4763dfe3d9cbe2b056d /nova/network
parent806113e4f413dba0f3dff980a00946e016dd4c7d (diff)
downloadnova-b44955c35429def97627e925da2f4d0568c1ecdd.tar.gz
Added super() call in some of the Model's child
In model.py, there some subclasses of Model which are not calling the parent's super() method in their own __init__() method. The classes are: VIF8021QbgParams (line 319) VIF8021QbhParams (line 329) NetworkInfoAsyncWrapper (line 489) Change-Id: I7a85f4963889b997ae47f4efa4e94f5eae6f3fb2 Closes-Bug: #1536281
Diffstat (limited to 'nova/network')
-rw-r--r--nova/network/model.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/nova/network/model.py b/nova/network/model.py
index d81611bccc..8f0ce5f68d 100644
--- a/nova/network/model.py
+++ b/nova/network/model.py
@@ -317,6 +317,8 @@ class VIF8021QbgParams(Model):
"""Represents the parameters for a 802.1qbg VIF."""
def __init__(self, managerid, typeid, typeidversion, instanceid):
+ super(VIF8021QbgParams, self).__init__()
+
self['managerid'] = managerid
self['typeid'] = typeid
self['typeidversion'] = typeidversion
@@ -327,6 +329,8 @@ class VIF8021QbhParams(Model):
"""Represents the parameters for a 802.1qbh VIF."""
def __init__(self, profileid):
+ super(VIF8021QbhParams, self).__init__()
+
self['profileid'] = profileid
@@ -487,6 +491,8 @@ class NetworkInfoAsyncWrapper(NetworkInfo):
"""
def __init__(self, async_method, *args, **kwargs):
+ super(NetworkInfoAsyncWrapper, self).__init__()
+
self._gt = utils.spawn(async_method, *args, **kwargs)
methods = ['json', 'fixed_ips', 'floating_ips']
for method in methods: