Remove left-over variables from overlayed methods
authorMichael Tremer <michael.tremer@ipfire.org>
Tue, 27 Oct 2015 00:52:14 +0000 (01:52 +0100)
committerMichael Tremer <michael.tremer@ipfire.org>
Tue, 27 Oct 2015 00:52:14 +0000 (01:52 +0100)
These should not be there and caused a runtime error
that made rendering the conntrack graphs impossible.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/collecty/plugins/conntrack.py

index 738c92f..0cce990 100644 (file)
@@ -156,7 +156,7 @@ class ConntrackLayer3ProtocolsGraphTemplate(base.GraphTemplate):
                _ = self.locale.translate
                return _("Number of open connections")
 
-       def get_object_table(self, object_id):
+       def get_object_table(self):
                return {
                        "file" : self.plugin.get_object("layer3-protocols"),
                }
@@ -249,7 +249,7 @@ class ConntrackLayer4ProtocolsGraphTemplate(ConntrackLayer3ProtocolsGraphTemplat
                return sorted(ConntrackTable._layer4_protocols,
                        key=lambda x: self.protocol_sortorder.get(x, 99))
 
-       def get_object_table(self, object_id):
+       def get_object_table(self):
                return {
                        "file" : self.plugin.get_object("layer4-protocols"),
                }