Missing super() in API collection controllers
The __init__ of these 3 classes are missing the super() call watcher/watcher/api/controllers/v1/goal.py:113 watcher/api/controllers/v1/audit.py:217 watcher/watcher/api/controllers/v1/audit_template.py:166 Change-Id: I2fec1d5dac29a311f617ef141d5bf91f00b96219 Closes-Bug: #1535354
This commit is contained in:
@@ -215,6 +215,7 @@ class AuditCollection(collection.Collection):
|
||||
"""A list containing audits objects"""
|
||||
|
||||
def __init__(self, **kwargs):
|
||||
super(AuditCollection, self).__init__()
|
||||
self._type = 'audits'
|
||||
|
||||
@staticmethod
|
||||
|
||||
@@ -164,6 +164,7 @@ class AuditTemplateCollection(collection.Collection):
|
||||
"""A list containing audit templates objects"""
|
||||
|
||||
def __init__(self, **kwargs):
|
||||
super(AuditTemplateCollection, self).__init__()
|
||||
self._type = 'audit_templates'
|
||||
|
||||
@staticmethod
|
||||
|
||||
@@ -111,6 +111,7 @@ class GoalCollection(collection.Collection):
|
||||
"""A list containing goals objects"""
|
||||
|
||||
def __init__(self, **kwargs):
|
||||
super(GoalCollection, self).__init__()
|
||||
self._type = 'goals'
|
||||
|
||||
@staticmethod
|
||||
|
||||
Reference in New Issue
Block a user