Compare commits

..

No commits in common. "441fbd22d2338981c1314e68b1ef449448b4aefa" and "4b11e407bef74bebe3af1cea8e3254dede1aedb1" have entirely different histories.

2 changed files with 4 additions and 4 deletions

View File

@ -16,7 +16,7 @@ def display_help():
def argparser(): def argparser():
# récupère l'ID du groupe # récupère l'ID du groupe
arglen = len(sys.argv) arglen = len(sys.argv)
save = None save = False
if "--save" in sys.argv: if "--save" in sys.argv:
save = True save = True
if "--no-save" in sys.argv: if "--no-save" in sys.argv:
@ -72,7 +72,7 @@ def main():
if to_save == "O": if to_save == "O":
save = True save = True
print("Sauvegarde de la configuration sur zephir") print("Sauvegarde de la configuration sur zephir")
elif to_save == "N": else:
print("La configuration ne sera pas sauvegardé sur le zephir") print("La configuration ne sera pas sauvegardé sur le zephir")
if save: if save:

View File

@ -148,9 +148,9 @@ def make_group():
filename += '-' + variantes[idx] filename += '-' + variantes[idx]
variantes = [variante_infos[variantes[idx]]] variantes = [variante_infos[variantes[idx]]]
print print
print("Liste des serveurs : ")
for variante in variantes: for variante in variantes:
cu.execute('select id,ip_publique,rne,libelle from serveurs where variante=' + str(variante)) cu.execute('select id,ip_publique,rne,libelle from serveurs where variante=' + str(variante))
print("Liste des serveurs : ")
for server in cu.fetchall(): for server in cu.fetchall():
print('{} - {} - {} - {}'.format(server[0], server[1], server[2], server[3])) print('{} - {} - {} - {}'.format(server[0], server[1], server[2], server[3]))
server_infos.append(server[0]) server_infos.append(server[0])