mot de passe compte crans

This commit is contained in:
Daniel STAN 2014-08-30 16:26:03 +02:00
parent 076d667d34
commit d76ed2febb
2 changed files with 28 additions and 14 deletions

View file

@ -42,7 +42,7 @@ for machine in m:
login = machine['host'][0].split('.', 1)[0]
todo = {'login': login, 'macAddress': machine['macAddress'][0].value}
if machine.has_key('ipsec'):
todo['pass'] = machine['ipsec'][0].value
todo['secret'] = machine['ipsec'][0].value
to_print.append(todo)
ch.basic_publish(exchange='', routing_key='CransTicket', body=json.dumps(to_print))