fixfix descr
authorTero Marttila <terom@fixme.fi>
Sat, 30 Jan 2010 19:37:09 +0200
changeset 9 32553ab44472
parent 8 37990ed8912b
child 10 18456616decc
child 21 d4f9fee218e5
fixfix descr
mrtg.py
--- a/mrtg.py	Sat Jan 30 19:37:00 2010 +0200
+++ b/mrtg.py	Sat Jan 30 19:37:09 2010 +0200
@@ -74,7 +74,7 @@
         self.hostname = hostname
         self.snmp_community = snmp_community
 
-    def port (self, port_name, mbps, port=None, descr=None, port_title=None) :
+    def port (self, port_name, mbps, port=None, desc=None, port_title=None) :
         """
             Create and return a Target describing the given port/interface on this host.
         """
@@ -84,7 +84,7 @@
 
         for prefix, tprefix, value in (
                 ('',    "#",    port),
-                ('\\',  "",     descr),
+                ('\\',  "",     desc),
         ) :
             if value :
                 # ok, use this