diff --git a/gestion/gen_confs/switchs2.py b/gestion/gen_confs/switchs2.py index 577edabf..76e6853f 100755 --- a/gestion/gen_confs/switchs2.py +++ b/gestion/gen_confs/switchs2.py @@ -103,7 +103,7 @@ class Port(object): if any("cl" in nom for nom in self.chambres) or self.uplink or \ self.servers: return '' - if any( adh['droits'] for adh in self.adherents()): + if any( adh.get('droits', None) for adh in self.adherents()): return '' return 'speed-duplex auto-10-100'