[switchs2] s/data_header/config_header/

This commit is contained in:
Daniel STAN 2013-09-19 22:26:27 +02:00
parent 3e5b3749f2
commit 248702cfe2

View file

@ -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'