提交 0fd7d1c2 编写于 作者: A Alessio Sergi

Add missing super() call

__init__ method from base class 'GlancesStats' is not called.
上级 25f531e3
......@@ -248,7 +248,7 @@ class GlancesStatsServer(GlancesStats):
def __init__(self, config=None):
# Init the stats
GlancesStats.__init__(self, config)
super(GlancesStatsServer, self).__init__(config)
# Init the all_stats dict used by the server
# all_stats is a dict of dicts filled by the server
......@@ -259,7 +259,7 @@ class GlancesStatsServer(GlancesStats):
input_stats = input_stats or {}
# Force update of all the stats
GlancesStats.update(self)
super(GlancesStatsServer, self).update()
# Build all_stats variable (concatenation of all the stats)
self.all_stats = self._set_stats(input_stats)
......@@ -292,6 +292,8 @@ class GlancesStatsClient(GlancesStats):
def __init__(self, config=None, args=None):
"""Init the GlancesStatsClient class."""
super(GlancesStatsClient, self).__init__()
# Init the configuration
self.config = config
......@@ -331,6 +333,8 @@ class GlancesStatsClientSNMP(GlancesStats):
"""This class stores, updates and gives stats for the SNMP client."""
def __init__(self, config=None, args=None):
super(GlancesStatsClientSNMP, self).__init__()
# Init the configuration
self.config = config
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册