Commit ea882eb4 authored by Gabriel Detraz's avatar Gabriel Detraz

Fix erreur de flashage config sur un switch

parent 1590c9ca
......@@ -159,7 +159,7 @@ def check_and_replace_mac(ldap, host):
return
if not (mac == mac_ldap):
print("Probleme : mac = %s alors que mac_ldap = %s" %
print("Probleme : mac = %s alors que mac_ldap = %s" %
(mac, mac_ldap))
while True:
query = raw_input('Voulez-vous mettre à jour la base LDAP ? (yes/no) ')
......@@ -229,7 +229,7 @@ if __name__ == '__main__':
if args.config:
switch = args.config + '.switches.crans.org'
if switch in switchs:
reconfigure_switch(ldap, sw)
reconfigure_switch(ldap, switch)
else:
print("Ce switch n'existe pas")
#TODO (6/11/17) : Faire marcher ce bout de code un jour
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment