diff --git a/gestion/gen_confs/switchs2.py b/gestion/gen_confs/switchs2.py index a4ff86d6..db644f75 100755 --- a/gestion/gen_confs/switchs2.py +++ b/gestion/gen_confs/switchs2.py @@ -245,7 +245,7 @@ def conf_switch(hostname): for com in switch['info']: if com.value.startswith(';'): - data['data_header'] = com.value.encode('utf-8') + data['config_header'] = com.value.encode('utf-8') break else: print(((u'Impossible de déterminer le header à utiliser pour %s;' + @@ -253,7 +253,7 @@ def conf_switch(hostname): % switch).encode('utf-8'), file=sys.stderr) data['config_header']= '; J4899A Configuration Editor; Created on release #H.10.50' - imodel = data['data_header'].split(' ', 2)[1] + imodel = data['config_header'].split(' ', 2)[1] if imodel == "J9145A": data['module_type'] = 'module 1 type J9145A'