diff --git a/gestion/locate-mac.py b/gestion/locate-mac.py index 16476a5d..a7b9820f 100755 --- a/gestion/locate-mac.py +++ b/gestion/locate-mac.py @@ -8,4 +8,7 @@ from sys import argv for switch in ['backbone'] + all_switchs(): prise = hpswitch(switch).where_is_mac(argv[1]) - print "%-10s: %d" % (switch, prise) + if prise != None: + print "%-10s: %d" % (switch, prise) + else: + print "%-10s: non trouvé" % switch