diff --git a/gestion/tools/locate-mac.py b/gestion/tools/locate-mac.py index cb83c14b..1ad60527 100755 --- a/gestion/tools/locate-mac.py +++ b/gestion/tools/locate-mac.py @@ -25,7 +25,7 @@ class interroge_switch (threading.Thread) : def run (self) : sw = hpswitch(self.switch) - prise = sw.where_is_mac(mac) + prise = sw.where_is_mac(self.mac) if prise != None : self.tableau.append("%-10s => prise %-2s : %s" % (self.switch.encode('iso-8859-15').replace('.adm.crans.org',''), str(prise), sw.nom(None, prise)))