From 248702cfe2b7baafdb2510b5c2bfc43b2b5c57ba Mon Sep 17 00:00:00 2001 From: Daniel STAN Date: Thu, 19 Sep 2013 22:26:27 +0200 Subject: [PATCH] [switchs2] s/data_header/config_header/ --- gestion/gen_confs/switchs2.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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'