diff --git a/gestion/ldap_crans.py b/gestion/ldap_crans.py index b0b8af49..045e9904 100755 --- a/gestion/ldap_crans.py +++ b/gestion/ldap_crans.py @@ -2049,7 +2049,7 @@ class machine(base_classes_crans): try: for line in open('/usr/scripts/gestion/ethercodes.dat').readlines(): if line.startswith(prefix): - vendor = line.replace(prefix,'').strip() + vendor = line.replace(prefix,'').replace('( )','').strip() break except IOError: # Le fichier existe pas, on sors